Skip to content

feat: report the credential's expiry in authn.Identity - #8

Merged
sujal-maheshwari2004 merged 1 commit into
mainfrom
feat/identity-expires
Oct 18, 2026
Merged

sujal-maheshwari2004 merged 1 commit into
mainfrom
feat/identity-expires

Conversation

@sujal-maheshwari2004

Copy link
Copy Markdown
Contributor

Adds Identity.Expires (zero = never), set by both providers:

  • StaticProvider: the tokens-file expiry.
  • JWKSProvider: the JWT exp.

The server uses it to give a NATS subscriber a connection deadline, so a subscription doesn't outlive its token (priompt/priompt#47). Additive; existing callers are unaffected.

Test: TestIdentityExpires. go test ./... passes.

🤖 Generated with Claude Code

Lets the server close a NATS subscriber's connection when its token or
JWT expires. Refs priompt/priompt#47.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sujal-maheshwari2004
sujal-maheshwari2004 merged commit 844d1e1 into main Oct 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant