@archastro/sdk
    Preparing search index...

    Interface OAuthTokenResponse

    A successful OAuth 2.0 token response. Issued by the token endpoint after a completed authorization or device-flow grant.

    interface OAuthTokenResponse {
        access_token: string;
        expires_in: number;
        refresh_token?: string;
        scope?: string;
        token_type: string;
        user?: User;
    }
    Index

    Properties

    access_token: string

    Bearer token used to authenticate API requests. Include this value in the Authorization: Bearer <token> header.

    expires_in: number

    Number of seconds until the access token expires.

    refresh_token?: string

    Token that can be exchanged for a new access token once the current one expires. null if the grant type does not issue refresh tokens.

    scope?: string

    Space-separated list of scopes granted to the access token. null if scope was not included in the grant request.

    token_type: string

    Token type. Always "Bearer".

    user?: User

    The authenticated user associated with this token. null when the token is not tied to a specific user (e.g. client-credentials grants).