I can use the Google Sign-In plugin to log in, but after I display the result, I can only print the result of event.accessToken, there is no way to print the result of event.serverAuthCode.
But I see that your documentation is Acquired.
Because I need to make a link with playfab, I need to get serverAuthCode.
Why don’t you use the regular Corona Google Plugin? it returns the AuthCode in the event. My code is a little code but look at the documentation, I doubt it has changed much.
local gpgs = require( "plugin.gpgs" ) local googlePlayServicesListerner googlePlayServicesListerner = function(event) if event.isError == false then if event.name == "init" then gpgs.login( {userInitiated = true, listener = googlePlayServicesListerner} ) elseif event.name == "login" and event.phase == "logged in" then gpgs.getServerAuthCode( {serverId=\<yourserverId\>, listener = googlePlayServicesListerner} ) elseif event.name == "getServerAuthCode" then local authcode = event.code -- event.code is the authcode. end end end gpgs.init( googlePlayServicesListerner )