fix: make oauth login flow interactive

This commit is contained in:
lda
2026-06-13 03:57:34 +07:00 Verified
parent f17fe18779
commit 85b2ca8bc7
4 changed files with 90 additions and 27 deletions
+5 -2
View File
@@ -445,10 +445,13 @@ Run OAuth login:
```bash
wf --config wf.config.json admin auth oauth-login google \
--id google.drive.personal \
--authorization-response "<redirected URL>"
--id google.drive.personal
```
The command prints the authorization URL, then prompts for the full redirected
callback URL after browser login. For non-interactive use, pass the callback URL
directly with `--authorization-response "<redirected URL>"`.
Refresh tokens are sensitive. The local file auth store is plaintext and
intended for local/dev use only.