Sign out
Revoke the refresh token, ending the session. Clients should also delete the locally stored `access_token` and `refresh_token` after calling this endpoint.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/auth/logout" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string" }'null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Auth
Passwordless OTP sign-in, OAuth (Google/Apple), session refresh, and logout. All sign-in methods return the same token pair plus a `user` object that includes the account's `role`.
Current user GET
Return the authenticated user's core fields and full profile, including `role`. Use this immediately after sign-in to determine which UI to display: - `patient` → patient mobile app - `doctor` → doctor dashboard (web) + patient app (mobile for own data) - `clinic_staff` → doctor dashboard (read-only) + patient app - `clinic_admin` → doctor dashboard (full) + patient app - `admin` → admin panel Note: doctors, clinic staff, and clinic admins can all use the patient mobile app to track their **own** health data.