mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 16:39:50 +00:00
fix: add account:read scope to DigitalOcean OAuth flow (#1724)
OAuth token validation calls GET /v2/account which requires the account:read scope. Without it, the token exchange succeeds but validation fails with 403, falling through to manual token entry. Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
be72d573e1
commit
f2010ce3bd
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.6.5",
|
||||
"version": "0.6.6",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ const DO_CLIENT_SECRET = "8083ef0317481d802d15b68f1c0b545b726720dbf52d00d17f649c
|
|||
|
||||
// Fine-grained scopes for spawn (minimum required)
|
||||
const DO_SCOPES = [
|
||||
"account:read",
|
||||
"droplet:create", "droplet:delete", "droplet:read",
|
||||
"ssh_key:create", "ssh_key:read",
|
||||
"regions:read", "sizes:read",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue