@bitblit/ratchet-epsilon-common
Version:
Tiny adapter to simplify building API gateway Lambda APIS
15 lines (14 loc) • 700 B
TypeScript
import { WebTokenManipulator } from './web-token-manipulator.js';
import { JwtTokenBase } from '@bitblit/ratchet-common/jwt/jwt-token-base';
export declare class GoogleWebTokenManipulator implements WebTokenManipulator<JwtTokenBase> {
private clientId;
private static readonly GOOGLE_DISCOVERY_DOCUMENT;
private cacheGoogleDiscoveryDocument;
private jwksClient;
constructor(clientId: string);
extractTokenFromAuthorizationHeader(authHeader: string): Promise<JwtTokenBase>;
parseAndValidateGoogleToken(googleToken: string, allowExpired?: boolean): Promise<JwtTokenBase>;
private fetchSigningKey;
private fetchJwksClient;
private fetchGoogleDiscoveryDocument;
}