Skip to content

Feature: make access token lifetime configurable via OAuthState#1

Open
JBetz wants to merge 1 commit into
dpella:mainfrom
JBetz:token-lifetime
Open

Feature: make access token lifetime configurable via OAuthState#1
JBetz wants to merge 1 commit into
dpella:mainfrom
JBetz:token-lifetime

Conversation

@JBetz

@JBetz JBetz commented Jun 7, 2026

Copy link
Copy Markdown

Add token_lifetime_seconds :: Int to OAuthState (default: 3600) so applications can set the access token TTL without forking the library. Updates issueAccessToken to read the lifetime from state rather than hardcoding 3600, and exposes setTokenLifetime in TestUtils to support lifetime assertions in tests.

Add token_lifetime_seconds :: Int to OAuthState (default: 3600) so
applications can set the access token TTL without forking the library.
Updates issueAccessToken to read the lifetime from state rather than
hardcoding 3600, and adds a test verifying expires_in reflects the
configured value.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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