Repository navigation
feat(auth): send client_id nansen-cli on device login - #824
gulshngill wants to merge 1 commit into
Conversation
Identify the CLI by a client_id on the device authorization request, next to the existing client_label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nansen-pr-reviewer summaryAdds the requested fixed client_id to device authorization requests, with matching unit-test coverage and a changeset. The change is narrowly scoped and no correctness or security issue is evident. Deterministic check: success — No issues found Risk: 3/5 (Elevated) — raised by: security-sensitive paths (auth/crypto/token/session) ✅ Auto-approved — Deterministic gates passed: severity thresholds met, recommendation "approve", risk level 3/5 within threshold 3. Token usage: 12,529 input, 353 output, 2,004 cache read | Usage Guide Cooldown: for the next 10 minutes (counting from when this review finished), new pushes to this PR will not trigger another review — the next push after the window expires will. Need a fresh review sooner? Comment |
There was a problem hiding this comment.
✅ Auto-approved by Nansen review
Deterministic gates passed: severity thresholds met, recommendation "approve", risk level 3/5 within threshold 3.
- The deterministic severity check passed: No issues found
- Risk level 3/5 (Elevated)
- The model recommended: approve
Approval was decided by deterministic gates, not by the model. The model's recommendation can block auto-approval but never cause it.
What
nansen loginnow sendsclient_id: 'nansen-cli'on/auth/device/authorize, next to the existingclient_label.Compatibility
validateSessiondoes not reject extra token claims.Testing
auth-device.test.jsasserts the exact authorize body (failed first, then passed).npm testandnpm run lintpass.🤖 Generated with Claude Code