Why Phase Two uses oidc-spa, and how we harden our own dashboard
· 13 min read
Our dashboard is a single-page app. It's served as static files, every page requires a login, and it calls our APIs straight from the browser with an access token. That makes the browser the place where a stolen token would come from, so the OIDC library we pick matters more than it would for a server-rendered app. We use oidc-spa for the dashboard and our other single-page apps. This post explains why, and walks through the hardening we did on the dashboard with oidc-spa 10.2.18, including a change of router that we didn't expect to make.