Custom Auth user signup returns NotAuthorizedException #1650
Labels
auth
Issues related to the Auth Category
pending-community-response
Pending response from the issue opener or other community members
pending-triage
This issue is in the backlog of issues to triage
Description
We have just switched from email/password authentication to custom auth, after #410 was released.
However, when I call
it returns
Unhandled Exception: NotAuthorizedException(message: A client attempted to write unauthorized attribute, recoverySuggestion: Check whether the given values are correct and the user is authorized to perform the operation., underlyingException: null)
Our cognito user pool was configured to have a mandatory email attribute.
Changes I have made to change into custom auth:
"authenticationFlowType": "CUSTOM_AUTH"
in amplifyconfiguration.dartI'm confused about which unauthorized attribute I was writing, as it used to work in 0.2.5 and USER_SRP_AUTH
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Android Device/Emulator API Level
No response
Environment
Dependencies
Device
iphone 13 pro max
OS
iOS 15.1
CLI Version
8.3.1
Additional Context
No response
The text was updated successfully, but these errors were encountered: