API reference/Auth
Sign in with a Google ID token
POST
/v1/auth/google/token
For iOS and Android apps. Returns a session like POST /v1/auth/login, or 202 with a second-factor challenge.
Body
application/json
id_tokenstringrequired
The ID token from Google's SDK
maxLength: 16384
noncestringrequired
From POST /v1/auth/google/nonce, as put in the request
maxLength: 256
transportstring
bearer (native apps): the token in the response; cookie: an HttpOnly session cookie
one of: cookie, bearerdefault: "bearer"
Responses
errors: application/problem+json
Match errors on the problem's code, which stays the same, not on its message.