I have been working with Amazon Cognito User Pools and have Apple set up as an identity provider in my User Pool. After going through the OAuth2 flow to create an account with Apple, Cognito's hosted UI redirects me to a page that simply shows the error "Invalid State/RelayState provided". How can I fix this issue?
Go to AWS Cognito service and click “Manage Identity Pools”. 2. Enter “Identity pool name”, expand the “Authentication providers” section and select “Cognito” tab. This is where the Cognito authentication provider will be registered with the Identity pool.
Navigate to the App integration tab for your user pool. Next to Domain, choose Actions and select Delete Cognito domain or Delete custom domain. Enter the domain name to confirm deletion.
This badly-described error can be caused by failing to enable an identity provider for the app client you are using to authenticate the user.
You can enable an identity provider by doing the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With