packages/auth-client: the product side of signing in through Accounts

Start a sign-in with the return path (state, nonce, PKCE), finish it,
sign-out address, back-channel logout tokens and Accounts' signed
user.* calls. Tested against the real provider. Root lint covers
Accounts' backend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 13:45:39 +02:00
co-authored by Claude Opus 5.5
parent f202a5a88e
commit a3e3921b4f
12 changed files with 318 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
# @crosscode/auth-client
The product side of signing in through the church's Accounts (docs/ACCOUNTS-1.0-PLAN.md §5). The
Church Website, the Church App and Cross Events 3.0 use it, so every product returns people to the
exact page they came from, checks state, nonce and PKCE, and handles back-channel logout and
Accounts' signed `user.*` calls the same way. Usage is in the comment at the top of `src/index.ts`.
Built on `openid-client` 6 (ES modules only). Tested against the real provider in
`apps/accounts/backend/tests/authClient.test.ts`.