Python Documentation Revision#19
Open
Lumi-VRC wants to merge 1 commit intovrchatapi:mainfrom
Open
Conversation
Added code examples and suggestions for automatic 2fa token generation and cookie persistence.
jellejurre
reviewed
Apr 29, 2026
| To interact with authenticated VRChat endpoints, your script needs to complete login and, when required, 2FA. | ||
| 2FA can be either an email code or an authenticator app code. | ||
|
|
||
| #### Automatic (recommended) |
Contributor
There was a problem hiding this comment.
What does automatic here mean? If you're not using cookies or explivit authentication this will fail
Also, it'd be good to keep the examples aligned with the https://github.com/vrchatapi/vrchatapi-python readme and https://github.com/vrchatapi/vrchatapi-python/tree/main/examples examples I think
Author
There was a problem hiding this comment.
I more or less aligned that "automatic" example with the JS example, which was similar. I'll align the examples as you suggested tomorrow, I didn't see those before.
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.
Added code examples and suggestions for automatic 2fa token generation and cookie persistence, and modified the description to be more specific towards what's in the revised documentation.
Unsure if pickle is best way to store cookies, but it works.