hippogamesunity / SimpleSignIn

A set of assets for Unity to authenticate users on different platforms with OAuth 2.0
4 stars 0 forks source link

Retrieving ServerAuthCode? #16

Closed kashiftasneempro closed 3 months ago

kashiftasneempro commented 3 months ago

Hi. I am implementing Google SignIn using Playfab in my Unity Game. The PlayfabClient API expects a "ServerAuthCode" . I have passed both "AccessToken" and "IdentityToken" received from SimpleSignIn asset but they are being rejected. How can I get the "ServerAuthCode"?

hippogamesunity commented 3 months ago

Hello! This feature is not advertised. It's for internal use and I'm not sure if you can pass it to 3rd party plugins. Anyway, if you need it, you should modify asset code, the auth code is passed to PerformCodeExchange (here you can intercept it and expose with an event or callback).