I got it working. I had a custom domain name configured for my pool. If I don't use that custom domain URL to start the OAuth process, I get the error. If I use my custom domain, it works.
Glad you got it working! The OAuth flows should always be started from the Cognito domain configured .
Where can I find additional logging related to OIDC flow in Cognitoasked 10 months ago
Cognito auth flow fails with "Already found an entry for username [<USERNAME>]"asked 5 months ago
Does cognito support IDP initiated SSO flow?asked a month ago
Checking the tokens that a server side app receives from front-end applicationasked 8 months ago
SAML Group assertions from IDP to AWS Cognitoasked 2 months ago
OAUTH Password Grant Type with Cognitoasked a year ago
How best to build custom Cognito login pages for use with a server-side app?Accepted Answerasked 3 years ago
Getting an error logging in with IdP in authorization code grant flowasked 3 years ago
How to use Amplify to authenticate against Cognito using the hosted UI and the implicit grant type?asked 9 months ago
Generic "Invalid Code" or "User not found" error when implementing SSO workaround for Amazon Cognitoasked a month ago