UNPKG

oidc-spa

Version:

Openidconnect client for Single Page Applications

19 lines (18 loc) 439 B
type AsymmetricKeys = { publicKey: string; privateKey: string; }; export declare function generateKeys(): Promise<AsymmetricKeys>; export declare function asymmetricEncrypt(params: { publicKey: string; message: string; }): Promise<{ encryptedMessage: string; }>; export declare function asymmetricDecrypt(params: { privateKey: string; encryptedMessage: string; }): Promise<{ message: string; }>; export {};