Aug 20, 2026·5 min readAuth, all four ways — and the OAuth2 refresh race that breaks most appsBearer, cookie, API key, OAuth2 — and the one bug almost every hand-rolled auth layer has: four parallel requests triggering four token refreshes at once.#typescript#api-client#authentication#oauth2#security