OAuthTokenResponse: {
    accessToken: string;
    tokenType: string;
    validUntil: number;
}

The response from the OAuth token endpoint

Type declaration

  • accessToken: string

    access_token

  • tokenType: string

    token_type usually "Bearer"

  • validUntil: number

    Uses the expires_in value from the /oauth/token endpoint to calculate the validUntil value:

    Date.now() + expires_in * 1000
    

Generated using TypeDoc