@cryptr/cryptr-spa-js
Version:
Cryptr SDK for Single Page Applications using passwordless authentication and/or SSO
15 lines (14 loc) • 929 B
TypeScript
import { Config } from './interfaces';
export declare const validatesHeader: (token: any) => void | true;
export declare const validatesFieldsExist: (jwtBody: any, fields: Array<string>) => void | true;
export declare const validatesTimestamps: (jwtBody: any) => void | true;
export declare const validatesClient: (tokenBody: any, config: Config) => void | true;
export declare const validatesAudience: (tokenBody: any, config: Config) => void | true;
export declare const validatesIssuer: (tokenBody: any, config: Config, organization_domain?: string) => void | true;
export declare const validatesExpiration: (tokenBody: any) => void | true;
declare const Jwt: {
body: (token: string) => object;
validatesAccessToken: (accessToken: string, config: Config, organization_domain?: string) => boolean;
validatesIdToken: (idToken: string, config: Config, organization_domain?: string) => boolean;
};
export default Jwt;