ART Framework API Docs
    Preparing search index...

    Class GenericOAuthStrategy

    Generic OAuth 2.0 authentication strategy with token caching and refresh capabilities. Supports client credentials flow and authorization code flow with automatic token refresh.

    This strategy is not recommended for browser-based applications as it uses the insecure client_credentials grant type. Please use PKCEOAuthStrategy instead.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    • Gets information about the current cached token.

      Returns null | { expiresAt: Date; hasRefreshToken: boolean; scope?: string }

      Token information or null if no token is cached.

    • Manually refreshes the cached token.

      Returns Promise<Record<string, string>>

      A promise that resolves to new authentication headers.