Skip to content

OAuth TokenResponse is missing few fields #408

@sowdri

Description

@sowdri

According to the docs OAuth token response returns the following data:

{
  "token_type": "bearer",
  "stripe_publishable_key": "{PUBLISHABLE_KEY}",
  "scope": "read_write",
  "livemode": false,
  "stripe_user_id": "{ACCOUNT_ID}",
  "refresh_token": "{REFRESH_TOKEN}",
  "access_token": "{ACCESS_TOKEN}",
}

The TokenResponse only captures the following:

public class TokenResponse extends StripeObject {
	Boolean livemode;
	String scope;
	String stripeUserId;
        // ...
}

Note: The document recommends to store only the stripeUserId, but the choice has to be made by the developer and the sdk should capture everything returned by the response.

Thanks all for the great work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions