Skip to content

Commit

Permalink
[#4] 애플 토큰 Request DTO 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Nov 1, 2021
1 parent c94215b commit 6629471
Showing 1 changed file with 55 additions and 0 deletions.
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;
}
}
}

0 comments on commit 6629471

Please sign in to comment.