UNPKG

@cryptr/cryptr-spa-js

Version:

Cryptr SDK for Single Page Applications using passwordless authentication and/or SSO

19 lines (18 loc) 482 B
declare class InMemory { cache: { [key: string]: { value: any; setAt: Date; }; }; accessTokenKey: string; idTokenKey: string; set(key: string, value: any): void; get(key: string): string | undefined; setAccessToken(accessToken: string): void; getAccessToken(): string | undefined; setIdToken(idToken: string): void; getIdToken(): string | undefined; clearTokens(): void; } export default InMemory;