API reference
POSTPublic
Social login
/api/v1/social-auth
Submit `/api/v1/social-auth`. Authenticated routes need `Authorization: Bearer {token}` from `POST /api/v1/login`.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
provider Required | string | `google` or `facebook`. e.g. "google" |
access_token Required | string | OAuth access token from the provider. e.g. "ya29.a0AfH6SMB..." |
Responses
| Status | Meaning |
|---|---|
| 502 | See the example response. |