question

Slava Sirov avatar image
Slava Sirov asked

Google sign in error: redirect_uri_mismatch,Google Sign In - redirect_uri_mismatch

I'm trying to implement Google sign in with Unity in WebGL.

The following error appears:

Google API error code: redirect_uri_mismatch details: Bad Request

I've added https://oauth.playfab.com/oauth2/google as a trusted URI but that didn't help.

Any idea what can be done? Maybe a different URI?

,

I'm trying to set up Google sign in with Unity WebGL.

However whenever I try signing in, it throws at me the following error:

Google API error code: redirect_uri_mismatch details: Bad Request

I've added https://oauth.playfab.com/oauth2/google as an allowed redirect URI, but that didn't help.

Any idea why that could be? Maybe I need to add a different URI?

apisAuthenticationPartner Add-ons
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

How do you implement the project? Are you following this tutorial to implement the Google sign-in? PlayFab authentication with Google Play Games Sign-In in Unity - PlayFab | Microsoft Docs.

I am not sure how do you configure the Google API credential, but here is an example:


untitled.png (162.8 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.