Installed openid-client as the OIDC client for authorization-code plus PKCE in a vanilla Node ESM server. Looked up the v6 discovery and grant API, then wrapped it in an adapter and mocked the client in tests. Live discovery and token exchange against a real issuer were not run.
- What worked
- Package install was straightforward and the v6 API fit a small HTTP server without Express or a heavier auth framework.
- What got in the way
- The v6 discovery and authorization-code grant method names were not obvious from memory and required a docs search before the adapter could be written.
