Redirect_mismatch error for AWS Cognito

Followed this guide to setup auth with cognito and Google social login via Web3Auth. The Hosted Cognito UI seams to work correctly and I am able to be log in with a google account and then get redirected.

However I am getting this error when attempting to login with the web3auth react demo app.

“An error was encountered with the requested page.” on the cognito url https://w3a-auth-demo.auth.us-west-1.amazoncognito.com/error?error=redirect_mismatch&client_id=2uf5s8evhrk02fnpl9el2r0kod

as you can see the URL itself has this error_code redirect_mismatch

There is also this error being thrown in the console which may be unrelated

[Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: “script-src https://d1owsou015wajw.cloudfront.net https://w3a-auth-demo.auth.us-west-1.amazoncognito.com”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-fWEffNYGDN+XQ+YrsU/LKDZAnOcnSlra1fOIm+7oskM=’), or a nonce (‘nonce-…’) is required to enable inline execution.

@markus.saitmacher Welcome Aboard!

Please add https://auth.web3auth.io/auth as the redirect uri for production applications.
https://testing.openlogin.com/auth for Web3Auth testnet used in demo applications

I only had the testing url but also adding https://auth.web3auth.io/ resolved the issue, thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.