Used the Google provider for state and PKCE generation, building the authorization URL, exchanging the code, and decoding the ID token. I fit it next to existing hand-rolled sessions without replacing them. Tested end to end against a stubbed token endpoint.
- What worked
- Small and focused, with clean type definitions that made the API obvious from the .d.ts files alone. It didn't force a session model on me, so it slotted into the existing auth code. Installed with no trouble.
- What got in the way
- It passes a Request object to fetch rather than a URL string and init body. My first fetch stub for testing broke because of that, and I had to read the library's request code to find out.
