POST/external/googleauth
Request an access token on behalf of a Google user. To use this functionality you must add your games Client ID, Secret and Redirect URI from Google, to the Game Admin > Settings page of your games profile on mod.io. A Successful request will return an Access Token Object.
*
HINT: If you want to overlay the mod.io site in-game on Android, we recommend you add ?portal=google
to the end of the URL you open which will prompt the user to login with Google. See Web Overlay Authentication for details.
Request
Error Codes
Status Code | Error Ref | Description |
---|---|---|
400 | 11053 | Google authentication settings have not been configured. Please contact support for assistance. |
401 | 11054 | mod.io was unable to validate the credentials with Google's servers. |
403 | 11074 | The user has not agreed to the mod.io Terms of Use. Please see terms_agreed parameter description and the [Terms](/restapi/docs/terms) endpoint for more information. |
403 | 17053 | The user account associated with this email is locked. Please contact support for assistance. |
Responses
- 200
- 400
- 401
- 403
Successful Request
Google authentication settings have not been configured. Please contact support for assistance.
mod.io was unable to validate the credentials with Google's servers.
The user account associated with this email is locked. Please contact support for assistance.