@auth0/auth0-spa-js
Version:
Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE
16 lines (15 loc) • 657 B
TypeScript
import * as dpopLib from 'dpop';
export declare const DPOP_NONCE_HEADER = "dpop-nonce";
export type KeyPair = Readonly<dpopLib.KeyPair>;
type GenerateProofParams = {
keyPair: KeyPair;
url: string;
method: string;
nonce?: string;
accessToken?: string;
};
export declare function generateKeyPair(): Promise<KeyPair>;
export declare function calculateThumbprint(keyPair: Pick<KeyPair, 'publicKey'>): Promise<string>;
export declare function generateProof({ keyPair, url, method, nonce, accessToken }: GenerateProofParams): Promise<string>;
export declare function isGrantTypeSupported(grantType: string): boolean;
export {};