cognito-jwt-token-validator
Version:
A JWT token validator to be used with cognito based custom authorizers.
7 lines (6 loc) • 328 B
TypeScript
import { JWK, PemDictionary } from './models';
export declare const validateIdToken: (jwtToken: string, pems: PemDictionary, iss: string, aud: string) => Promise<{
[key: string]: string;
}>;
export declare const getPems: (jwks: JWK[]) => PemDictionary;
export declare const getJWKs: (jwksPath: string) => Promise<{}>;