@cashu/cashu-ts
    Preparing search index...

    Function createAuthWallet

    • High-level helper to create a fully authenticated wallet session.

      Parameters

      • mintUrl: string

        URL of the mint to connect to.

      • Optionaloptions: { authPool?: number; logger?: Logger; oidc?: OIDCAuthOptions }
        • OptionalauthPool?: number

          Optional. Desired BAT pool size (default 10)

        • Optionallogger?: Logger
        • Optionaloidc?: OIDCAuthOptions

          Optional. Options for OIDCAuth (scope, clientId, logger, etc.)

      Returns Promise<{ auth: AuthManager; mint: Mint; oidc: OIDCAuth; wallet: Wallet }>

      — hydrated, ready to use.

      Like a dependency injector, it wires AuthManager->Mint->OIDCAuth->Wallet in the correct order. Wallet is returned ready to use.

      If mint does not require authentication.