Skip to content

Commit

Permalink
add :: JwtProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
ta2ye0n committed Oct 9, 2024
1 parent 66605e0 commit 396b059
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/java/com/gcms/v3/global/security/jwt/JwtProperties.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.gcms.v3.global.security.jwt;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Getter
@Component
public class JwtProperties {
@Value("${jwt.secret.access-token}")
private String accessTokenKey;

@Value("${jwt.secret.refresh-token}")
private String refreshTokenKey;

public static final String AUTHORITIES = "auth";

public static final String GRANT_TYPE = "Bearer";

public static final String TOKEN_PREFIX = "Bearer ";

public static final long ACCESS_TOKEN_TIME = 1000 * 60 * 30L;

public static final long REFRESH_TOKEN_TIME = 1000L * 60 * 60 * 24 * 7;
}

0 comments on commit 396b059

Please sign in to comment.