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
refactor(web): migrate all auth to withAuthV2/withOptionalAuthV2 (#1071)
* refactor(web): migrate all auth to withAuthV2/withOptionalAuthV2
Replace all usages of the legacy withAuth and withOrgMembership
helpers with the newer withAuthV2, withOptionalAuthV2, and
withMinimumOrgRole APIs. This consolidates auth into a single
context object that provides user, org, role, and a user-scoped
prisma client, eliminating the need for separate domain parameters
and nested auth wrappers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feedbacl
* fix(web): fix origin bug in approval email and add withAuthV2_skipMembershipCheck
- Replace undefined `origin` global with `env.AUTH_URL` in the join
request approval email plaintext body.
- Add `withAuthV2_skipMembershipCheck` wrapper for actions where the
user may not yet be an org member (joinOrganization, redeemInvite,
getInviteInfo).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments