authentication
Refresh Token
Changed onRefresh access token using refresh token.
Returns a new access token only. The refresh token is NOT rotated - client should continue using the same refresh token until it expires. This ensures users must re-login periodically, improving security for self-hosted deployments.
Accepts the refresh token either in the request body (the /legacy/ Flutter client) or via the journiv_refresh HttpOnly cookie (the React PWA). The cookie is refreshed on success so its Max-Age slides; the JWT's own exp claim is unchanged and still governs the 7-day window.
The client should:
- Keep using the same refresh token
- Use the new access token for API requests
- Re-login when the refresh token expires
post/api/v1/auth/refresh
Request
- The document declares no server URL.
- Auth: none declared
Request body
Response
Successful Response
Changes
- breaking
the request's body type changed from
objectto no type - warning
removed the request property
- info
added
subschema #2to the request bodyanyOflist - info
request body became optional
- breaking