interface AuthManager {
    getAuthToken(): Promise<string>;
    getRefreshToken(): Promise<string>;
    refreshAuthToken(authToken): Promise<string>;
}

Methods

  • Returns the user's authorisation token.

    Returns Promise<string>

  • Called by the SDK when the authorisation token expires and an API called failed. The host application is expected to refresh the user's token and return the newly refreshed one.

    Parameters

    • authToken: string

      The expired authorisation token

    Returns Promise<string>

    The newly refreshed authorisation token