UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

21 lines (20 loc) 783 B
import * as core from "../core/index.js"; declare const TOKEN_PARAM: "apiKey"; export declare class BearerAuthProvider implements core.AuthProvider { private readonly options; constructor(options: BearerAuthProvider.Options); static canCreate(options: Partial<BearerAuthProvider.Options>): boolean; getAuthRequest({ endpointMetadata, }?: { endpointMetadata?: core.EndpointMetadata; }): Promise<core.AuthRequest>; } export declare namespace BearerAuthProvider { const AUTH_SCHEME: "bearerAuth"; const AUTH_CONFIG_ERROR_MESSAGE: string; type Options = AuthOptions; type AuthOptions = { [TOKEN_PARAM]?: core.Supplier<core.BearerToken> | undefined; }; function createInstance(options: Options): core.AuthProvider; } export {};