This endpoint is used as a callback URL for Google OAuth2.0 authentication. It is called by Google after the user has successfully authenticated with Google.
See Google OAuth2.0 documentation for more information.
code: The authorization code returned by Google after the user has successfully authenticated with Google.error: The error code returned by Google if the user failed to authenticate with Google.
None
None
{
"success": true,
"message": "Login successful"
}Example:
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 500 | Internal Server Error. |
token(optional): The JWT token that is used to authenticate the user. This cookie is only set if the user successfully authenticated with Google.