Sequence · Imported from PlantUML · doc-inline · balanced
Token refresh on a bearer call
Token refresh on a bearer call
Client calls a resource API, then an alt fragment shows either a valid body or a 401 path that refreshes via Auth and retries. A note on the API says to keep the cache cold.
ALT
[token expired]
[else · token valid]
keep the cache cold
GET /ORDERS
200 · BODY
401
POST /TOKEN
200 · ACCESS
GET /ORDERS · RETRY
200 · BODY
200 · BODY
APP
Client
SPA · SDK
API
Resource API
Bearer gate
AUTH
Auth Service
token · refresh
LEGEND
ALT
Fragment
Activation
HTTP call
Return
Retry success