Skip to main content
Regenerate backup codes for 2FA.

Signature

Parameters

Optional[str]
2FA code from Authenticator app, SMS, or Email
Optional[str]
2FA Method type. Only use when you only have one method of this type
Optional[str]
Secret token from previous login step (required for SMS or Email 2FA)
Optional[str]
One-time backup code (alternative to regular 2FA code)
Optional[str]
2FA Method ID if you have more than one of the same type (‘id’ from tfa status)

Returns

dict

Example