@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface OAuthTokens

    interface OAuthTokens {
        accessToken: string;
        expiresAt: Date;
        merchantId: string;
        refreshToken: string;
        refreshTokenExpiresAt?: Date;
        tokenType: string;
    }
    Index
    accessToken: string

    Merchant access token — use as accessToken in createSquareClient

    expiresAt: Date

    When accessToken expires (30 days after issue). Refresh well before this.

    merchantId: string

    Merchant the tokens belong to

    refreshToken: string

    Refresh token. For the code flow with a client secret this does not expire, and Square returns the same value on refresh.

    refreshTokenExpiresAt?: Date

    Only set when the refresh token itself expires (PKCE flow)

    tokenType: string

    Always 'bearer'