Two surfaces, one substrate
A browser-facing router for SPA frontends and a service-facing API for backend callers, both reading and writing the same session/token substrate.
A shared session substrate exposed through a browser-facing router and a service-facing API.