Skip to content

Commit

Permalink
테스트 위한 토큰 만료 시간 변경 및 탈퇴 후 가입 테스트 (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
juno-junho authored Dec 1, 2023
1 parent 48197f3 commit 2b92616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/spaceclub/user/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class User {
@Enumerated(STRING)
private Status status;

@Column(nullable = false, unique = true)
@Column(unique = true)
private String oauthUserName;

@Enumerated(STRING)
Expand Down Expand Up @@ -234,15 +234,15 @@ public User changeStatusToRegistered() {
}

public User changeStatusToDeleted() {
if (!this.status.equals(INACTIVE)){
if (!this.status.equals(INACTIVE)) {
throw new IllegalStateException(USER_CANNOT_WITHDRAW.toString());
}

return new User(
this.id,
this.requiredInfo,
DELETED,
this.oauthUserName,
null,
this.provider,
this.email,
this.refreshToken,
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/application-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jwt:
header: access-token
issuer: space-club
client-secret: ENC(2qr8v6d7x0P13dZVjQx4XToeeUHUh7tW)
expiry-seconds: 36000000 # 1시간
refresh-expiry-seconds: 1209600 # 2주
# expiry-seconds: 36000000 # 1시간
expiry-seconds: 60000 # 2주
refresh-expiry-seconds: 90000 # 2주

web:
allowed-origins:
Expand Down

0 comments on commit 2b92616

Please sign in to comment.