apistockdocs
v0.4 GitHub apistock.dev
API reference/Auth

Sign in with Google or Apple in a browser

GET /v1/auth/{provider}/start
Open it in the browser (a link or redirect, not fetch): it sets a short-lived cookie and redirects to the provider. The provider returns to the callback, which redirects to return_to signed in, or with #mfa_challenge_token=…&methods=… for a second factor, or #error=<code>.

Path

providerstringrequired
one of: google, apple

Query

return_tostring

Where to send the browser afterwards: an absolute URL on the API's origin or an APP_CORS_ORIGINS origin. Default: the API docs

maxLength: 2048

Responses

errors: application/problem+json
302

Found

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