@bates-solutions/clover API Reference - v1.3.0
    Preparing search index...

    Interface OAuthTokens

    An expiring token pair returned by CloverOAuthClient.obtainToken and CloverOAuthClient.refreshToken.

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

    Merchant access token. Use as apiToken in createCloverClient.

    expiresAt: Date

    When accessToken expires. Refresh before this.

    refreshToken: string

    Refresh token. Single use: each refresh returns a new pair and invalidates this one, so store the new value every time.

    refreshTokenExpiresAt: Date

    When refreshToken expires