UNPKG

lets-mfa

Version:

Free, secure, and quick way to add MFA to your existing app. No user migrations or re-architecture needed!

7 lines 580 B
import * as jose from "jose"; import { LetsMFAResponse } from "./main"; import { LetsMFAPublicConfig } from "lets-mfa-rp-lib"; export declare function decryptResponse(response: string, letsMFAConfig: LetsMFAPublicConfig, privateKey: jose.KeyLike | Uint8Array): Promise<jose.FlattenedJWS>; /** Throws an error if the signature is not valid, otherwise returns the payload content */ export declare function validateResponseSignature<T extends LetsMFAResponse>(response: jose.FlattenedJWS, letsMFAConfig: LetsMFAPublicConfig): Promise<T>; //# sourceMappingURL=response-utils.d.ts.map