auth: Ignore tokens.json so Login output is not git-added #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity
Medium
What
Login/WriteTokenspersist OAuth material attokens.json(mode 0600), includingaccess_token,refresh_token, and oftenclient_secret. The repo.gitignoredoes not listtokens.json, so a normalgit add .after a local login can stage live brokerage credentials.tradeyalready ignorestokens.json; this library is the writer and the more likely place someone runsLoginin-tree.Practical impact
Accidental commit of Robinhood Agentic tokens to a public (or shared) forge clone enables account takeover / live order placement. Mode 0600 only helps on the local FS, not once the file is in git history.
Fix
Add
tokens.json(and common variants if any) to.gitignore. Optionally mention the ignore in README next to the existing mode-0600 note.Out of scope
Changing token format, OAuth flow, or live trading gates.
Fix PR: #21