feat(auth-local): add local accounts and server-side sessions #57
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/56-auth-local"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #56
What
New package
@quatrain/auth-local(version1.0.0-beta.1), an adapter of@quatrain/authfor an application that keeps its users itself. It is also what gives an application session to a user signed in with@quatrain/auth-oidc-client.issuer,subject), created at first sign-in or refused (create: false); never matched to an existing account by e-mail, linking is explicit.LocalAuthStoreInterface, withPostgresLocalAuthStore(bound parameters only, DDL insql/auth_local.sql, tablesauth_account,auth_identity,auth_session) andMemoryLocalAuthStore.Out of scope
Password recovery, multi-factor authentication, rate limiting of sign-in attempts (left to the application, said in the HOWTO).
Tests
35 tests. The same contract suite runs on the memory store and on PostgreSQL; the PostgreSQL half needs
AUTH_LOCAL_TEST_URLand is skipped in CI. Run locally against PostgreSQL 17: all pass.To decide at review
auth_*), fixed for now.🤖 Generated with Claude Code