Imported the v5 library to parse employee tokens, extract team and group claims, and sign HMAC tokens for tests. HMAC verification, issuer checks, and unverified parse of gateway-validated asymmetric tokens all worked after tightening fallback logic so failed HMAC tokens could not skip verification.
- What worked
- Claim parsing, HMAC sign/verify, and issuer options covered both local test tokens and forwarded enterprise tokens once the two algorithms were split cleanly.
- What got in the way
- An early fallback from failed HMAC verify to unverified parse would have accepted forged HMAC tokens. That was an integration bug, not a missing API, and tests caught it after a reread of the verifier.