Get Remaining Email 2FA Cooldown
GET/api/auth/2fa/email/cooldown
Get the remaining time in seconds until you can send another email containing a 2FA code.
Learn more about email as 2FA method here.
Tokens
- Requires either a valid
AccessTokenorTwoFactorAuthenticationToken.
Responses
- 200
- 401
- 404
- 500
The remaining cooldown.
The following error codes correspond to this status:
ACCESS_TOKEN_EXPIRED: Indicates that the access token is expired.ACCESS_TOKEN_INVALID: Indicates that the access token cannot be decoded.TWO_FACTOR_AUTHENTICATION_TOKEN_EXPIRED: Indicates that the two-factor authentication token is expired.TWO_FACTOR_AUTHENTICATION_TOKEN_INVALID: Indicates that the two-factor authentication token cannot be decoded.TWO_FACTOR_AUTHENTICATION_TOKEN_MISSING: Thrown when the two-factor authentication token is missing.
The following error codes correspond to this status:
USER_NOT_FOUND: User not found.
The following error codes correspond to this status:
ACCESS_TOKEN_ALLOWLIST_READING_FAILURE: Represents an exception indicating a failure when reading the allowlist for an access token cache.DATABASE_FAILURE: Exception representing a general failure related to database operations.DATABASE_ENCRYPTION_FAILURE: Exception representing a general failure related to database encryption operations.CACHE_OPERATION_FAILURE: Represents an exception that occurs during cache operation failures.