feat: add NestM auth control-plane services - #29
Merged
Conversation
Contributor
Author
|
Downstream stock-runtime validation is now open in kauandotnet/integration-api#1. That harness pins registry better-auth 1.6.26 and consumes this PR as the only implementation dependency; better-auth/better-auth#10932 is optional. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BetterAuthService.invokeApi()with Node/Web header normalization and stable Nest HTTP error translationBetterAuthSessionServiceoperations plus an opt-in policy that blocks raw token-bearing Better Auth routesBetterAuthOrganizationServicefor members, invitations, ID-bound resend, terminal decisions, and post-commit session-selector reconciliationValidation
pnpm run checkpnpm run verify:packpnpm run test:express— 33 files, 280 testspnpm run test:fastify— 33 files, 280 testsPG_URL=... pnpm run test:postgres— 8 files, 83 testsbetter-auth@1.6.26is used by the package and all conformance testsGuarantee boundary
Cross-process organization serialization requires the supplied PostgreSQL coordinator, the exact same coordinator
getManagerpassed totypeormAdapter, and the opt-in raw-route policy. Directauth.apicalls bypass that boundary. Email/hooks, secondary storage, and signed cookie caches cannot commit atomically with PostgreSQL; durable external effects still require an outbox and live membership remains the authorization proof.Related
better-auth@1.6.26