1

this the request uri

https://mydomain.auth.us-east-1.amazoncognito.com/?response_type=code&client_id=<client_id>' + '&redirect_uri=http://localhost:8080/'

it redirect to this uri with error that chown in image

https://mydomain.auth.us-east-1.amazoncognito.com/error?error=redirect_mismatch&client_id=<client_id>

enter image description here

Note that: everything works fine with login

Mikhail Fayez
  • 421
  • 3
  • 15

2 Answers2

1

Please try below URLs

Cognito Setting: Cognito User Pool --> "Sign in and sign out URLs" → "Callback URL(s)" →

Value to be added : ",https://localhost/dashboard,https://localhost/oauth2/idpresponse,"

If this does not work then try adding port as well.

0

you are redirect to localhost, it's not url valid because is not public on internet

alejandro correa
  • 157
  • 2
  • 12