Auth
Get anonymous device token
Create or resume an anonymous device session. If the device has an active refresh token, returns a new access token without creating a new session (200). Otherwise, creates a new device session with refresh + access tokens (201).
This is the entry point for the Flutter app — no account creation required.
post/v1/auth/anonymous
Request
- Base URL: http://localhost:4000
- URL: http://localhost:4000/v1/auth/anonymous
- Auth: none declared
Request body
Response
Existing device — tokens re-issued (refreshToken is null)
Example response
{
"expiresIn": 900,
"tokenType": "Bearer"
}