diff --git a/oauth.go b/oauth.go index 04187b894b..c4ccfe6743 100644 --- a/oauth.go +++ b/oauth.go @@ -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.