lets-mfa
Version:
Free, secure, and quick way to add MFA to your existing app. No user migrations or re-architecture needed!
20 lines • 979 B
TypeScript
import { AuthPolicy } from "./auth-policy";
import { LetsMFARequest, LetsMFAResponse } from "./request-response";
export interface AuthenticateRequest extends LetsMFARequest {
/** A signed JWT from another provider, or self generated. This value will be included in the response
* id_token JWT from LetsMFA. This is useful for "chaining" JWTs from multiple identity providers
* to validate the user's identity and reverify MFA with a single JWT.
*/
nestedJWT: string;
/** Authentication policy for the user to complete */
authPolicy: AuthPolicy;
/** The value returned in the original EnrollResponse for the user, or in the last AuthenticationRequest */
accountVault: string;
}
export interface AuthenticateResponse extends LetsMFAResponse {
/** The JWT defining the user */
id_token: string;
/** The accountVault that should be saved and used in future requests */
accountVault: string;
}
//# sourceMappingURL=auth.d.ts.map