UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

14 lines (13 loc) 616 B
import { JwtTokenBase } from '@bitblit/ratchet/common'; import { WebTokenManipulator } from './web-token-manipulator'; export declare class Auth0WebTokenManipulator implements WebTokenManipulator<JwtTokenBase> { private clientId; private jwksUri; private issuer; private jwksClient; constructor(clientId: string, jwksUri: string, issuer: string); extractTokenFromAuthorizationHeader<T>(authHeader: string): Promise<JwtTokenBase>; parseAndValidateAuth0Token<T>(auth0Token: string, allowExpired?: boolean): Promise<JwtTokenBase>; private fetchSigningKey; private fetchJwksClient; }