Files
hermes-agent/plugins
kshitijk4poor af5c2014a8 refactor(dashboard-auth): collapse verify_jwt's identical except arms
Final-head review fold:

- verify_jwt: the expired / bad-signature / not-yet-valid arms existed only
  because the catch-all used to raise ProviderError; all now raise the same
  InvalidCodeError, so one InvalidTokenError arm covers them (PyJWT's own
  message names the failure; the clock-skew test matches it). The aud/iss
  arm's diagnostic re-decode runs only after the signature verified, so its
  try/except-pass guarded nothing.
- Docstrings: ProviderError also covers a malformed JWKS and a provider-wide
  contract failure (oauth_contract_version); the refresh comment no longer
  assumes Portal's rotate-on-use refresh tokens.
- Cookie tests use the __Host- names the server sets over HTTPS, so they
  keep exercising verify/refresh once bare names stop being read there
  (#136772); the access-token-only case asserts the session-expired reason
  rather than any 401.
2026-11-07 16:04:30 +05:30
..