feat: add OAuth1 PIN-based token save script#9
Open
yasaka57 wants to merge 1 commit intoxdevplatform:masterfrom
Open
feat: add OAuth1 PIN-based token save script#9yasaka57 wants to merge 1 commit intoxdevplatform:masterfrom
yasaka57 wants to merge 1 commit intoxdevplatform:masterfrom
Conversation
Adds save_tokens.py to obtain OAuth1 access tokens interactively (PIN-based flow) and persist them directly into .env, enabling automated scripts to use static credentials without re-running the full OAuth consent flow each time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
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
save_tokens.py: a one-time helper that runs the OAuth1 PIN-based consent flow and writesX_OAUTH_ACCESS_TOKEN/X_OAUTH_ACCESS_TOKEN_SECRETdirectly into.envrequests-oauthlibandpython-dotenvalready listed inrequirements.txtHow it works
python save_tokens.py.envautomaticallyTest plan
X_OAUTH_ACCESS_TOKENandX_OAUTH_ACCESS_TOKEN_SECRETare populated in.envafter running the scriptcreatePostscall succeeds with the saved credentials without re-running the flow🤖 Generated with Claude Code