From b1fee72387e296fb50ec524c254ad25b6e570ba4 Mon Sep 17 00:00:00 2001 From: jonghyunhub Date: Tue, 17 Oct 2023 19:15:18 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=98=88=EB=B9=84=EC=9A=A9=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EA=B3=84=EC=A0=95=20api=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../co/kr/jurumarble/user/controller/UserController.java | 7 +++++++ .../java/co/kr/jurumarble/user/service/UserService.java | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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); } }