@bitblit/ratchet-epsilon-common
Version:
Tiny adapter to simplify building API gateway Lambda APIS
14 lines (13 loc) • 632 B
TypeScript
import { JwtTokenBase } from '@bitblit/ratchet-common/jwt/jwt-token-base';
import { WebTokenManipulator } from './web-token-manipulator.js';
export declare class Auth0WebTokenManipulator implements WebTokenManipulator<JwtTokenBase> {
private clientId;
private jwksUri;
private issuer;
private jwksClient;
constructor(clientId: string, jwksUri: string, issuer: string);
extractTokenFromAuthorizationHeader(authHeader: string): Promise<JwtTokenBase>;
parseAndValidateAuth0Token(auth0Token: string, allowExpired?: boolean): Promise<JwtTokenBase>;
private fetchSigningKey;
private fetchJwksClient;
}