-
It is unclear when I should transition to the reauthenticate screen while setting up two-factor authentication. If two-factor authentication is already set up, I can investigate the need for reauthentication by sending a GET request to "/_allauth/app/v1/account/authenticators/recovery-codes". However, if I am setting up two-factor authentication for the first time, I may be asked to reauthenticate when I send a POST request to "/_allauth/app/v1/account/authenticators/totp", which can be redundant. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Suppose you check in advance -- given that there is always a bit of time between the check, and actually making use of the information you checked on, it may be the case that the information you were given is outdated by the time you are using it. So, you will always need to prepare for receiving a "reauthentication required" even if you were to check in advance. Having said that, in the current session you can find the authentication methods, and the timestamp the method was used, see
You can use that to check in advance. |
Beta Was this translation helpful? Give feedback.
Suppose you check in advance -- given that there is always a bit of time between the check, and actually making use of the information you checked on, it may be the case that the information you were given is outdated by the time you are using it. So, you will always need to prepare for receiving a "reauthentication required" even if you were to check in advance.
Having said that, in the current session you can find the authentication methods, and the timestamp the method was used, see
methods
: