You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to authenticate my app to make REST calls to Google from Unity. I successfully generate an authCode from logging in with this API with the following configuration.
I get a 400 Generic/unknown HTTP error with the response { "error": "invalid_grant", "error_description": "Malformed auth code." }. What is going wrong? Am I able to use a webClientID to access Google API from REST? Is there a problem with authCode generation? Please advise, thanks.
The text was updated successfully, but these errors were encountered:
I hate myself. I've been debugging for like 5 hours. In the line formData.AddField("code", "AuthCode"); I put " around AuthCode. I wasn't sending my actual variable lol, it's all fixed now.
Hi everyone,
I am trying to authenticate my app to make REST calls to Google from Unity. I successfully generate an
authCode
from logging in with this API with the following configuration.I'm now trying to exchange my
authCode
for anaccessToken
so I can make REST calls to different APIs. I referenced #57 and my code for this is below.I get a
400 Generic/unknown HTTP error
with the response{ "error": "invalid_grant", "error_description": "Malformed auth code." }
. What is going wrong? Am I able to use awebClientID
to access Google API from REST? Is there a problem withauthCode
generation? Please advise, thanks.The text was updated successfully, but these errors were encountered: