Skip to content

Commit

Permalink
Add refresh_token and token_type to OAuthV2Response fields
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenami-i committed Feb 10, 2022
1 parent bc4206c commit 4d6e826
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ type OAuthV2ResponseEnterprise struct {

// OAuthV2ResponseAuthedUser ...
type OAuthV2ResponseAuthedUser struct {
ID string `json:"id"`
Scope string `json:"scope"`
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ID string `json:"id"`
Scope string `json:"scope"`
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
}

// GetOAuthToken retrieves an AccessToken
Expand Down

0 comments on commit 4d6e826

Please sign in to comment.