diff --git a/src/main/java/co/kr/jurumarble/user/controller/UserController.java b/src/main/java/co/kr/jurumarble/user/controller/UserController.java index c59e656..4b9795d 100644 --- a/src/main/java/co/kr/jurumarble/user/controller/UserController.java +++ b/src/main/java/co/kr/jurumarble/user/controller/UserController.java @@ -81,4 +81,11 @@ public ResponseEntity tokenTest() { String token = userService.testToken(); return ResponseEntity.ok().body(new TokenTestResponse(token)); } + + @Operation(summary = "예비 심사용 계정 로그인") + @GetMapping("/test-temporary") + public ResponseEntity tokenTemporaryTest() { + String token = userService.tokenTemporaryTest(); + return ResponseEntity.ok().body(new TokenTestResponse(token)); + } } diff --git a/src/main/java/co/kr/jurumarble/user/service/UserService.java b/src/main/java/co/kr/jurumarble/user/service/UserService.java index 0d103ae..cfe5709 100644 --- a/src/main/java/co/kr/jurumarble/user/service/UserService.java +++ b/src/main/java/co/kr/jurumarble/user/service/UserService.java @@ -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); } }