UNPKG

@auth0/auth0-spa-js

Version:

Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE

18 lines (17 loc) 609 B
import { DpopStorage } from './storage'; import * as dpopUtils from './utils'; export declare class Dpop { protected readonly storage: DpopStorage; constructor(clientId: string); getNonce(id?: string): Promise<string | undefined>; setNonce(nonce: string, id?: string): Promise<void>; protected getOrGenerateKeyPair(): Promise<dpopUtils.KeyPair>; generateProof(params: { url: string; method: string; nonce?: string; accessToken?: string; }): Promise<string>; calculateThumbprint(): Promise<string>; clear(): Promise<void>; }