Authentication
Google OAuth Login
Authenticate using a Google ID token obtained from Google Sign-In.
POST /api/auth/google
Request body:
| Field | Type | Description |
|---|---|---|
credential | string | Google ID token from Google Sign-In |
Response:
{
"user": {
"id": 1,
"google_id": "...",
"email": "user@example.com",
"name": "John Doe",
"avatar": "https://...",
"created_at": 1710000000
}
}
A session cookie is set on successful authentication.
Get Current User
Returns the currently authenticated user.
GET /api/auth/me
Response:
{
"user": {
"id": 1,
"email": "user@example.com",
"name": "John Doe",
"avatar": "https://...",
"created_at": 1710000000
}
}
Errors:
401— Not authenticated
Logout
Destroys the current session.
POST /api/auth/logout
Response:
{ "ok": true }
Delete Account
Permanently deletes the authenticated user's account, including all rooms, recordings, and workspaces.
DELETE /api/auth/account
Response:
{ "ok": true }
danger
This action is irreversible. All data associated with the account will be permanently deleted.