Skip to content

Commit

Permalink
Merge pull request #1030 from hidenami-i/master
Browse files Browse the repository at this point in the history
Add refresh_token and token_type to OAuthV2Response fields
  • Loading branch information
kanata2 committed Feb 12, 2022
2 parents bc4206c + 4d6e826 commit 9cad061
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions oauth.go
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 9cad061

Please sign in to comment.