Mayson Monorepo Documentation
    Preparing search index...
    interface OAuthToken {
        access_token?: string;
        scope?: string;
        livemode?: boolean;
        token_type?: "bearer";
        refresh_token?: string;
        stripe_user_id?: string;
        stripe_publishable_key?: string;
    }
    Index

    Properties

    access_token?: string

    The access token you can use to make requests on behalf of this Stripe account. Use it as you would any Stripe secret API key. This key does not expire, but may be revoked by the user at any time (you'll get a account.application.deauthorized webhook event when this happens).

    scope?: string

    The scope granted to the access token, depending on the scope of the authorization code and scope parameter.

    livemode?: boolean

    The live mode indicator for the token. If true, the access_token can be used as a live secret key. If false, the access_token can be used as a test secret key. Depends on the mode of the secret API key used to make the request.

    token_type?: "bearer"

    Will always have a value of bearer.

    refresh_token?: string

    Can be used to get a new access token of an equal or lesser scope, or of a different live mode (where applicable).

    stripe_user_id?: string

    The unique id of the account you have been granted access to, as a string.

    stripe_publishable_key?: string

    A publishable key that can be used with this account. Matches the mode—live or test—of the token.