Google sign-in for mobile (ID token)
POST/v2/auth/google/mobile
Mobile-native Google sign-in. The app obtains a Google ID token via the
Google Sign-In SDK and sends it here; the backend verifies it server-side
(audience must be the web client id or GOOGLE_MOBILE_CLIENT_ID) and
returns the same { token, user } shape as login. No redirect/callback URL
involved — works on Android/iOS regardless of the web OAuth redirect config.
Request
Responses
- 200
- 400
- 401
- 403
Logged in (token + user)
Missing id_token, or the Google account has no email
Invalid or untrusted ID token
Google email is not verified