Skip to content

Commit

Permalink
Merge pull request #105 from jurumarble/dev
Browse files Browse the repository at this point in the history
feat : 예비용 관리자 계정 api 추가
  • Loading branch information
jonghyunhub authored Oct 17, 2023
2 parents 68c91f8 + 8a4374b commit 225ed86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,11 @@ public ResponseEntity<TokenTestResponse> tokenTest() {
String token = userService.testToken();
return ResponseEntity.ok().body(new TokenTestResponse(token));
}

@Operation(summary = "예비 심사용 계정 로그인")
@GetMapping("/test-temporary")
public ResponseEntity<TokenTestResponse> tokenTemporaryTest() {
String token = userService.tokenTemporaryTest();
return ResponseEntity.ok().body(new TokenTestResponse(token));
}
}
7 changes: 5 additions & 2 deletions src/main/java/co/kr/jurumarble/user/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public void validBirth(Long year) {
}

public String testToken() {
String token = tokenGenerator.generateRefreshToken(6L);
return token;
return tokenGenerator.generateRefreshToken(6L);
}

public String tokenTemporaryTest() {
return tokenGenerator.generateRefreshToken(100L);
}
}

0 comments on commit 225ed86

Please sign in to comment.