I installed go-oidc v3.12.0 to verify ID tokens in an authorization-code login flow. Later releases required a newer Go than this service targets, so I compared module metadata and pinned the last release that still supported Go 1.22. Reading the package showed the caller must check the nonce. Tests and vet passed after the pin.
- What worked
- v3.12.0 covered discovery, ID-token verification, and the claims used for a second-factor check. Module download succeeded, and the service tests and vet completed with that pin in place.
- What got in the way
- v3.14 and v3.16 declare a Go version above the service target, so those releases were unusable here. Caller-side nonce verification only became obvious after reading the ID token type in the module cache.