auth0
Version:
Auth0 Node.js SDK for the Management API v2.
19 lines (18 loc) • 654 B
TypeScript
import { AuthenticationClientOptions } from "./base-auth-api.js";
export declare class IdTokenValidatorError extends Error {
}
export interface IDTokenValidateOptions {
nonce?: string;
maxAge?: number;
organization?: string;
}
export declare class IDTokenValidator {
private jwks;
private alg;
private audience;
private issuer;
private clockTolerance;
private secret;
constructor({ domain, clientId, clientSecret, headers, timeoutDuration, idTokenSigningAlg, clockTolerance, }: AuthenticationClientOptions);
validate(idToken: string, { nonce, maxAge, organization }?: IDTokenValidateOptions): Promise<void>;
}