auth: Ignore tokens.json so Login output is not git-added
Login writes access/refresh tokens (and often client_secret) to tokens.json at mode 0600. Without a gitignore entry, git add . after a local login can stage live Agentic credentials. Closes: #20
This commit was merged in pull request #21.
This commit is contained in:
@@ -3,3 +3,6 @@
|
|||||||
bin/
|
bin/
|
||||||
*.exe
|
*.exe
|
||||||
coverage.out
|
coverage.out
|
||||||
|
|
||||||
|
# OAuth tokens from auth.Login / WriteTokens (mode 0600 on disk)
|
||||||
|
tokens.json
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ cfg := rh.Config{
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Daemon/headless callers must not call `Login` (no browser). They call `Connect` with an existing token file (mode `0600`).
|
Daemon/headless callers must not call `Login` (no browser). They call `Connect` with an existing token file (mode `0600`). Keep `tokens.json` out of git (listed in `.gitignore`).
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user