@audiotool/nexus - v0.0.17
    Preparing search index...

    Type Alias AuthenticatedClient

    AuthenticatedClient: AudiotoolClient & {
        exportTokens: () => TokenData;
        logout: () => void;
        status: "authenticated";
        userName: string;
    }

    Authenticated client that extends AudiotoolClient with auth-specific methods.

    Type declaration

    • exportTokens: () => TokenData

      Export tokens for server-side use.

      Send these to your server (via cookie, session, etc.) to make API calls on behalf of the user using createServerAuth().

    • logout: () => void

      Log out and reload the page

    • status: "authenticated"

      The authentication status

    • userName: string

      The authenticated user's name