fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev

Co-authored-by: Val Alexander <bunsthedev@gmail.com>
This commit is contained in:
Val Alexander
2026-04-17 02:48:30 -05:00
committed by GitHub
parent 3ea1bf4232
commit 0b6c39be18
7 changed files with 80 additions and 14 deletions

View File

@@ -89,7 +89,21 @@ Gateway → Client:
```
`server`, `features`, `snapshot`, and `policy` are all required by the schema
(`src/gateway/protocol/schema/frames.ts`). `auth` and `canvasHostUrl` are optional.
(`src/gateway/protocol/schema/frames.ts`). `canvasHostUrl` is optional. `auth`
reports the negotiated role/scopes when available, and includes `deviceToken`
when the gateway issues one.
When no device token is issued, `hello-ok.auth` can still report the negotiated
permissions:
```json
{
"auth": {
"role": "operator",
"scopes": ["operator.read", "operator.write"]
}
}
```
When a device token is issued, `hello-ok` also includes: