Document CLI token auto-refresh and MINTLIFY_SESSION_TOKEN#5184
Closed
mintlify[bot] wants to merge 1 commit intomainfrom
Closed
Document CLI token auto-refresh and MINTLIFY_SESSION_TOKEN#5184mintlify[bot] wants to merge 1 commit intomainfrom
mintlify[bot] wants to merge 1 commit intomainfrom
Conversation
…ION_TOKEN env var Generated-By: mintlify-agent
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
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.
Summary
The CLI now automatically refreshes expired access tokens in the background and stores credentials in the OS keychain instead of the config file. A new
MINTLIFY_SESSION_TOKENenvironment variable enables authentication in CI/CD and headless environments.Changes
cli/preview.mdxto reflect keychain-based credential storage, auto-refresh behavior, and added a new section on authenticating with theMINTLIFY_SESSION_TOKENenvironment variablecli/commands.mdxto document keychain storage formint login, add a cross-reference to the env var docs, and add an environment variables reference tableNote
Low Risk
Low risk documentation-only change describing new credential storage and authentication options; no runtime code paths are modified.
Overview
Updates CLI docs to reflect that
mint logincredentials are stored in the OS keychain and access tokens auto-refresh in the background.Documents headless/CI authentication via
MINTLIFY_SESSION_TOKEN(including keychain-first fallback behavior) inPreview locally, and adds an Environment variables reference section to the commands reference.Reviewed by Cursor Bugbot for commit 3d7f766. Bugbot is set up for automated code reviews on this repo. Configure here.