Documentation
    Preparing search index...

    Bearer Authentication HTTP provider that sets Authorization: Bearer <token> headers. Accepts a static string or an asynchronous callback to resolve dynamic tokens.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • token: string | (() => string | Promise<string>)

      Returns BearerAuthProvider

    Methods

    • Generates the structured auth headers for fetch.

      Returns Promise<Record<string, string>>

      A promise resolving to the headers record.