UNPKG

@auth0/auth0-spa-js

Version:

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

24 lines (23 loc) 643 B
import { ClientStorage } from './storage'; interface Transaction { nonce: string; scope: string; audience: string; appState?: any; code_verifier: string; redirect_uri?: string; organizationId?: string; state?: string; } export declare class TransactionManager { private storage; private clientId; private cookieDomain?; private transaction; private storageKey; constructor(storage: ClientStorage, clientId: string, cookieDomain?: string | undefined); create(transaction: Transaction): void; get(): Transaction | undefined; remove(): void; } export {};