-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] 프론트엔드에서 쿠키 활용 불가에 따른 로그인 API 수정
- Loading branch information
Showing
5 changed files
with
40 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...ain/java/io/oeid/mogakgo/domain/auth/presentation/dto/res/AuthAccessTokenApiResponse.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
src/main/java/io/oeid/mogakgo/domain/auth/presentation/dto/res/AuthTokenApiResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.oeid.mogakgo.domain.auth.presentation.dto.res; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
|
||
@Schema(description = "Access Token 재발급 응답") | ||
@Getter | ||
public class AuthTokenApiResponse { | ||
|
||
@Schema(description = "Access Token", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJNb0dha0dvIiwiaWF0IjoxNzA4MjE5NDA3LCJleHAiOjE3NDQyMTk0MDcsInVzZXJJZCI6Miwicm9sZXMiOlsiUk9MRV9VU0VSIl19.vu_Oq5dX3cMYAOwFIk_BvqkEGrkk0Reth2FBde7pcKw") | ||
private final String accessToken; | ||
@Schema(description = "Refresh Token", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJNb0dha0dvIiwiaWF0IjoxNzA4MjE5NDA3LCJleHAiOjE3NDQyMTk0MDcsInVzZXJJZCI6Miwicm9sZXMiOlsiUk9MRV9VU0VSIl19.vu_Oq5dX3cMYAOwFIk_BvqkEGrkk0Reth2FBde7pcKw") | ||
private final String refreshToken; | ||
@Schema(description = "회원가입 완료 여부", example = "true", nullable = true) | ||
private final Boolean signUpComplete; | ||
|
||
private AuthTokenApiResponse(String accessToken, String refreshToken, | ||
Boolean signUpComplete) { | ||
this.accessToken = accessToken; | ||
this.refreshToken = refreshToken; | ||
this.signUpComplete = signUpComplete; | ||
} | ||
|
||
public static AuthTokenApiResponse of(String accessToken, String refreshToken, | ||
Boolean signUpComplete) { | ||
return new AuthTokenApiResponse(accessToken, refreshToken, signUpComplete); | ||
} | ||
} |