Sunday, 1 May 2022

"redirect_uri_mismatch" when using "popup" mode

We build our web application and integrate with Google OAuth2 according to this doc Google Identity Services JavaScript SDK

We would like to use "popup" mode, but when trying to exchange access_token with authentication code, /token return error like "

{"error": "redirect_uri_mismatch","error_description": "Bad Request"}"

We have passed the redirect_url param when calling /token, and it is exactly the one configured on the credential page.

What's more weird is that when we switch to "redirect" mode, everything works fine.

Any help? Thanks a lot!



from "redirect_uri_mismatch" when using "popup" mode

No comments:

Post a Comment