question

aduci avatar image
aduci asked

Unity WebGL Google Login

Hi,

I have found that playfab has a way to log in with google for both mobile and webgl (https://api.playfab.com/documentation/client/method/LoginWithGoogleAccount)

but i couldnt manage to succeed on WebGL.

Is there a tutorial or working script for that?

Authentication
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

·
Sarah Zhang avatar image
Sarah Zhang answered

As Google Play games services does not support WebGL, you may refer to Setting up PlayFab authentication using Google and HTML5 to implement Google login. The key point here is getting AccessToken from Google. And then using AccessToken instead of ServerAuthCode to log into PlayFab.

The following thread might be helpful for you: Google Windows Login (NOT GPG/Google Play as this is unavailable in Windows) - invalidGoogleToken. Although its target platform is Desktop not WebGL, but this platform also does not have Google Sign-In support.

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.