A way to re-authenticate a user #14239
Labels
pending-maintainer-response
Issue is pending a response from the Amplify team.
pending-triage
Issue is pending triage
Is this related to a new or existing framework?
No response
Is this related to a new or existing API?
Authentication
Is this related to another service?
No response
Describe the feature you'd like to request
I have a potentially destructive operation, like changing the account email. To confirm it's "safe" to change that email, on the backend, we check
auth_time
to be a recent one.In v5, we ask users for their password and call
signIn
with it so they get a fresherauth_time
.In v6, it is no longer possible to call
signIn
on the authenticated user.What's the best way to solve this in v6?
Is there any option to update
auth_time
, bypassassertUserNotAuthenticated
, or ask for re-entering password as a form of confirmation?Describe the solution you'd like
For the
auth_time
use case:signIn
method to bypass user authentication checksignInWithUserPassword
The password confirmation use case in general:
auth_time
likepassword_confirmation_time
Describe alternatives you've considered
There is a hack that could mimic the v5 behavior:
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: