UNPKG

@apideck/react-vault

Version:

<br />

12 lines (11 loc) 510 B
import { ConfirmResponse } from '../types/OAuthCsrf'; export declare function generateAndStoreNonce(serviceId: string): string; export declare function verifyAndClearNonce(serviceId: string, nonce: string): boolean; export declare function clearNonce(serviceId: string): void; export declare function callConfirmEndpoint(params: { unifiedApi: string; serviceId: string; confirmToken: string; connectionsUrl: string; headers: Record<string, string>; }): Promise<ConfirmResponse>;