apistockdocs
v0.4 GitHub apistock.dev
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
200

OK

401

Unauthorized

403

Forbidden

422

Unprocessable Entity

500

Internal Server Error

503

Service Unavailable

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close