-
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
Showing
34 changed files
with
699 additions
and
204 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
25 changes: 25 additions & 0 deletions
25
Api/src/main/java/tify/server/api/auth/model/response/OauthRefreshResponse.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,25 @@ | ||
package tify.server.api.auth.model.response; | ||
|
||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import tify.server.infrastructure.outer.api.oauth.dto.AppleRefreshResponse; | ||
|
||
@Getter | ||
@Builder | ||
public class OauthRefreshResponse { | ||
|
||
private String accessToken; | ||
|
||
private String tokenType; | ||
|
||
private Long expiresIn; | ||
|
||
public static OauthRefreshResponse from(AppleRefreshResponse response) { | ||
return OauthRefreshResponse.builder() | ||
.accessToken(response.getAccessToken()) | ||
.tokenType(response.getTokenType()) | ||
.expiresIn(response.getExpiresIn()) | ||
.build(); | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
Api/src/main/java/tify/server/api/auth/model/response/UserRefreshTokenResponse.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,12 @@ | ||
package tify.server.api.auth.model.response; | ||
|
||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class UserRefreshTokenResponse { | ||
|
||
private String appleRefreshToken; | ||
} |
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
Oops, something went wrong.