@auth0/auth0-spa-js
Version:
Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE
23 lines (22 loc) • 615 B
TypeScript
import { ClientStorage } from './storage';
interface Transaction {
nonce: string;
scope: string;
audience: string;
appState?: any;
code_verifier: string;
redirect_uri?: string;
organization?: string;
state?: string;
}
export declare class TransactionManager {
private storage;
private clientId;
private cookieDomain?;
private storageKey;
constructor(storage: ClientStorage, clientId: string, cookieDomain?: string | undefined);
create(transaction: Transaction): void;
get(): Transaction | undefined;
remove(): void;
}
export {};