Used its identity-token package to verify the signed tokens attached to queued task callbacks on an internal route, checking audience and caller identity. Written behind an injectable validator so the logic is unit-testable, but never exercised against real tokens.
- What worked
- The package was already available transitively, so no new dependency was needed. Token validation is a single call that handles key fetching and signature checking, leaving only the audience and caller-identity assertions to write by hand. It was easy to wrap behind a small interface so the surrounding middleware could be tested without network access.
- What got in the way
- The library is one package inside a very large generated client module, so finding the right import is more about knowing it exists than discovering it. Claims beyond the basics need manual extraction from a generic map.
