ART Framework API Docs
    Preparing search index...

    Class PKCEOAuthStrategy

    Implements the OAuth 2.0 Authorization Code Flow with PKCE (Proof Key for Code Exchange). This is the recommended, most secure method for authenticating users in browser-based applications.

    Implements

    Index

    Constructors

    Methods

    • Gets the authentication headers, automatically handling token refresh if needed.

      Returns Promise<Record<string, string>>

      A promise that resolves to the authentication headers.

    • Handles the redirect from the authorization server. This method should be called on the redirect URI page. It exchanges the authorization code for an access token.

      Returns Promise<void>

      A promise that resolves when the redirect has been handled.

    • Initiates the PKCE login flow by redirecting the user to the authorization endpoint.

      Returns Promise<void>

      A promise that resolves when the login process is complete.