UNPKG

@contentgrid/fetch-hook-authentication

Version:
11 lines (10 loc) 337 B
export interface AuthenticationToken { token: string; expiresAt: Date | null; } interface AuthenticationTokenSupplierOptions { fetch: typeof fetch; signal?: AbortSignal; } export type AuthenticationTokenSupplier = (uri: string, opts: AuthenticationTokenSupplierOptions) => Promise<AuthenticationToken | null>; export {};