Add project-key support to Python/Node/Java AuthClient equivalents

Mirrors Go's authclient.WithProjectKey: each client now accepts a
project_key/projectKey and sends it as X-Project-Key on every request,
so AuthGuard can enforce per-user project-access restriction for
consumers written in these languages too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-09-13 21:08:49 +02:00
1 parent 5364588ba0
commit f58579290d
4 files changed
+71 -4

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@gabriel20xx/node-backend": patch
---
`AuthClient` accepts a `projectKey` option, sent as `X-Project-Key` on every request, so AuthGuard can enforce per-user project-access restriction for Node consumers the same way the Go and Python clients already do.