Skip to content

Commit

Permalink
Add comment about OAuthToken fields that should not be used
Browse files Browse the repository at this point in the history
  • Loading branch information
cjavilla-stripe committed Jul 8, 2019
1 parent bd7da1c commit 3c92581
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,17 @@ type OAuthTokenParams struct {
// OAuthToken is the value of the OAuthToken from OAuth flow.
// https://stripe.com/docs/connect/oauth-reference#post-token
type OAuthToken struct {
AccessToken string `json:"access_token"`
Error OAuthError `json:"error"`
ErrorDescription string `json:"error_description"`
Livemode bool `json:"livemode"`
RefreshToken string `json:"refresh_token"`
Scope OAuthScopeType `json:"scope"`
StripePublishableKey string `json:"stripe_publishable_key"`
StripeUserID string `json:"stripe_user_id"`
TokenType OAuthTokenType `json:"token_type"`

// Deprecated, please use StripeUserID
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
StripePublishableKey string `json:"stripe_publishable_key"`
}

// Deauthorization is the value of the return from deauthorizing.
Expand Down

0 comments on commit 3c92581

Please sign in to comment.