-
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.
- Loading branch information
1 parent
d3571d1
commit 40b56b2
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
week2/src/main/java/server/sopt/week2/common/jwt/dto/CreateTokenByRefreshTokenResponse.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,10 @@ | ||
package server.sopt.week2.common.jwt.dto; | ||
|
||
public record CreateTokenByRefreshTokenResponse( | ||
String accessToken | ||
) { | ||
|
||
public static CreateTokenByRefreshTokenResponse of(String s) { | ||
return new CreateTokenByRefreshTokenResponse(s); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
week2/src/main/java/server/sopt/week2/dto/UserJoinResponse.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,13 @@ | ||
package server.sopt.week2.dto; | ||
|
||
public record UserJoinResponse( | ||
String accessToken, | ||
String refreshToken, | ||
String userId | ||
) { | ||
public static UserJoinResponse of( | ||
String accessToken, String refreshToken, String userId | ||
){ | ||
return new UserJoinResponse(accessToken,refreshToken, userId); | ||
} | ||
} |