lets-mfa
Version:
Free, secure, and quick way to add MFA to your existing app. No user migrations or re-architecture needed!
29 lines • 1.53 kB
TypeScript
/** Sent by the service provider to LetsMFA to request an id_token response, which
* validates the user's identity
*/
import { AccountVault } from "./account-vault";
import { LetsMFAResponse, LetsMFARequest } from "./request-response";
export interface ChainedAuthenticationRequest extends LetsMFARequest {
/** The URL to which the client is redirected after authentication is complete */
responseUrl: string;
/** A JWT from a third party or self generated, that is included in the AuthenticationResponse.
* This is used for "chaining" JWTs from multiple identity providers to validate the user's identity and reverify MFA with a single JWT.
*/
nestedJwt: string;
/** The accountValue value for the user, from the Enroll flow response when
* the user first enrolled.
*/
accountVault: AccountVault;
/** The URL of the log image displayed to the user when they are directed to the LetsMFA
authentication user interface. This must be served from a domain that is covered by the 'domain' that was
specified at enroll time .*/
logoUrl?: string;
}
export interface ChainedAuthenticationResponse extends LetsMFAResponse {
/** If successful, the signed JWT returned by LetsMFA after the user has successfully authenticated.
* This value will contain the nestedJWT from the AuthenticationRequest if one was supplied. You must verify the signature
* of this JWT and the NestedJWT!
*/
idToken?: string;
}
//# sourceMappingURL=authentication-chained.d.ts.map