-
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
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
api/src/main/java/com/teamnexters/lazy/api/config/auth/jwt/AppleToken.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,55 @@ | ||
package com.teamnexters.lazy.api.config.auth.jwt; | ||
|
||
import lombok.Setter; | ||
|
||
public class AppleToken { | ||
|
||
@Setter | ||
public static class Request { | ||
private String code; | ||
private String client_id; | ||
private String client_secret; | ||
private String grant_type; | ||
private String refresh_token; | ||
|
||
public static Request of(String code, String clientId, String clientSecret, String grantType, String refreshToken) { | ||
Request request = new Request(); | ||
request.code = code; | ||
request.client_id = clientId; | ||
request.client_secret = clientSecret; | ||
request.grant_type = grantType; | ||
request.refresh_token = refreshToken; | ||
return request; | ||
} | ||
} | ||
|
||
@Setter | ||
public static class Response { | ||
private String access_token; | ||
private String expires_in; | ||
private String id_token; | ||
private String refresh_token; | ||
private String token_type; | ||
private String error; | ||
|
||
public String getAccessToken() { | ||
return access_token; | ||
} | ||
|
||
public String getExpiresIn() { | ||
return expires_in; | ||
} | ||
|
||
public String getIdToken() { | ||
return id_token; | ||
} | ||
|
||
public String getRefreshToken() { | ||
return refresh_token; | ||
} | ||
|
||
public String getTokenType() { | ||
return token_type; | ||
} | ||
} | ||
} |