Standalone Authentication Service
Domain-agnostic authentication API providing credential verification, JWT token management, refresh token rotation, and revocation.
Create a new account. Called by an External API when a new user or device is created on their side.
Authenticate and get tokens. Auth API verifies credentials, resolves the application, then calls back the External API's claims endpoint.
POST {claimsUrl} with account info → Sign JWT with returned claims → Generate refresh token → Return both.
Rotate refresh token and get new tokens. Old refresh token is revoked. Fresh claims are fetched from the External API.
Revoke a refresh token (logout). The access token is not invalidated — it expires naturally based on its TTL.
This endpoint must be implemented by the External API. Auth API calls it during login and refresh to fetch claims that will be embedded in the JWT access token.
claimsUrl is configured per application in the applications collection. Auth API sends the account info and forwards the x-application-secret header so the External API can verify the caller.