@auth0/nextjs-auth0
Version:
Auth0 Next.js SDK
26 lines (25 loc) • 932 B
JavaScript
/**
* MFA-related types for authentication flow.
*
* Response types use snake_case to match Auth0 API conventions (consistent with SPA SDK).
* SDK-facing types use camelCase.
*/
/**
* Grant type for MFA token exchange.
* Used in token endpoint requests to exchange an mfa_token for access/refresh tokens.
*
* @see https://auth0.com/docs/api/authentication#verify-with-one-time-password-otp-
*/
export const GRANT_TYPE_MFA_OTP = "http://auth0.com/oauth/grant-type/mfa-otp";
/**
* Grant type for MFA OOB (SMS/Email/Push) verification.
*
* @see https://auth0.com/docs/api/authentication#verify-with-oob
*/
export const GRANT_TYPE_MFA_OOB = "http://auth0.com/oauth/grant-type/mfa-oob";
/**
* Grant type for MFA recovery code verification.
*
* @see https://auth0.com/docs/api/authentication#verify-with-recovery-code
*/
export const GRANT_TYPE_MFA_RECOVERY_CODE = "http://auth0.com/oauth/grant-type/mfa-recovery-code";