You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a26c120
Browse filesBrowse the repository at this point in the historyBrowse files
feat(auth): org operations for composed flows — better-auth idiomatic (#887)
* feat(auth): org operations for composed flows, better-auth idiomatic (#861)
- getOrganization: lightweight by slug (better-auth's own surface), unknown
translates to null at the plugin boundary
- createOrganization gains activate (default true preserves better-auth's
create-switches-active behavior; false maps to
keepCurrentActiveOrganization for flows that must not disturb the caller's
session); deterministic restore via existing setActiveOrganization(null)
- skills: the two-call create-or-reuse recipe (checkSlug/getOrganization ->
create), replacing hand-built CONFLICT->list->match recovery
Issue: #861
* review(auth): 861 fixes — drop misplaced limiter guard, extract shared code insert, tighten tests
- handlers/organizations: remove the rate-limit guard (machinery lives in
#862; this PR is org ops only)
- onboarding service: extract insertOnboardingCode shared by create/rotate,
drop the encryptedCode! assertion via explicit narrowing, isStanding naming
- tests: activate-semantics test drops the void-bound result;
credential-less happy path asserts a resolved personal org instead of
Array.isArray
Self-review of the series; no behavior change.
0 commit comments