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?
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: