Allow to use confirmUserAttribute
without active session
#13238
Labels
Auth
Related to Auth components/category
pending-response
Issue is pending response from the issue requestor
question
General question
Is this related to a new or existing framework?
No, it's just JavaScript.
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
When calling
sendUserAttributeVerificationCode({ userAttributeKey: "email" })
it would be more ideal to verify the user without an active session. However,confirmUserAttribute
expects andaccessToken
in the session to work.It's usually possible to click on the button in an email to verify it, without the need to being authenticated.
Describe the solution you'd like
Instead of
accessToken
ausername
parameter should be enough to verify the email.So instead of:
It should work like
Describe alternatives you've considered
You could use admin actions for that, but I want to avoid it when possible.
Additional context
I am using aws-amplify only with custom JavaScript, no Hosted UI or pre-made components from amplify.
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: