@archastro/sdk
    Preparing search index...

    Interface AuthTokens

    Credential bundle returned after a successful authentication exchange. Contains the access token, refresh token, and the authenticated user.

    interface AuthTokens {
        expires_in: number;
        metadata?: Record<string, unknown>;
        refresh_token: string;
        token: string;
        token_type: string;
        user: User;
    }
    Index

    Properties

    expires_in: number

    Number of seconds until token expires. After this period, use refresh_token to obtain a new access token.

    metadata?: Record<string, unknown>

    Optional auxiliary data associated with this authentication event, such as onboarding_job_id when the user is completing onboarding. null when no extra context is present.

    refresh_token: string

    Long-lived opaque refresh token. Use this to obtain a new access token when token expires.

    token: string

    Short-lived JWT access token. Include this value in the Authorization: Bearer <token> header for all authenticated API requests.

    token_type: string

    Token scheme. Always "Bearer".

    user: User

    The user who authenticated. Contains the user's profile and account details.