feat: Make state cookie lifetime configurable via env var#2788
Open
feat: Make state cookie lifetime configurable via env var#2788
Conversation
…IE_LIFETIME env var Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b3daebd to
c9ad981
Compare
5a038fe to
37dd794
Compare
37dd794 to
79cf406
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The hardcoded 3-minute state cookie lifetime is too short for users with email-based OAuth login flows, where email verification or multi-step login can exceed that window, causing authentication failures.
This PR:
_state_cookie_lifetimeconfigurable via theCHAINLIT_STATE_COOKIE_LIFETIMEenvironment variable, defaulting to 180 seconds (3 minutes) to preserve existing behavior.actions/checkout@v4toactions/checkout@v6which solves issue withchanged-filesnot working ("Error: Failed to fetch pull request branch. Please ensure "persist-credentials" is set to "true" when checking out the repository. See: https://github.com/actions/checkout#usage", see CI run.)