Skip to navigation

Google Sign-In

Authenticate with a Google ID token and open a session.

Authentication: Public — no Bearer token required.

Request body:

  • id_token (required) — Google OAuth ID token from the client
  • mode (optional) — Sign-in mode; controls whether an unknown account may be registered

Response (signed in): Standard login payload — data.token, data.location, data.user, plus data.admin_token and data.redirect_url when applicable.

Response (2FA enabled): data.otp_required is true and data.otp_token carries a 5-minute token to submit to POST /session/verify_otp.

Response (unregistered account): data.needs_registration is true, alongside provider, email, first_name, and last_name so the client can complete registration.

Side effects: Triggers a UserLogin event recording the IP address and provider set to google.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
id_tokenstringOptional
modestringOptional

Response

OK