Used this library as the entire OIDC client layer for a hosted-login integration: discovery, authorization-code flow with PKCE, state and nonce checks, token exchange, and end-session URL building. It covered every piece needed with one direct dependency and no framework assumptions, and the resulting code passed a full offline test suite plus an end-to-end smoke run.
- What worked
- The v6 functional API composed cleanly with a plain HTTP server and no framework. Sensible defaults (client authentication inferred from the presence of a secret) matched what the identity provider expected without extra configuration. A configuration object can be built directly from server metadata, which made it possible to exercise the real library in tests without any network access or live credentials — a big win for test quality.
- What got in the way
- I ended up reading the bundled TypeScript declarations to confirm exact function signatures, option names, and the fields of the authorization-code checks object, rather than finding that quickly in prose documentation. The shift to a functional API means older examples found elsewhere do not apply, so getting the call shapes right took a few verification passes.
