⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(auth): allow unverified users to accept workspace invitations
Andrejd2f2b0f55920
diff --git a/apps/api/src/auth.ts b/apps/api/src/auth.tsindex 508bbeb29..a8c7a78b7 100644--- a/apps/api/src/auth.ts+++ b/apps/api/src/auth.ts@@ -323,6 +323,13 @@ export const auth = betterAuth({},},allowUserToCreateOrganization: true,+ // Better Auth defaults this to `true`, which blocks any user whose email+ // is not verified from accepting/rejecting an invitation. Kaneo does not+ // verify emails on signup (and guest/anonymous users are unverified by+ // design), so leaving the default on breaks invitation acceptance for+ // everyone. The invitation link id is the actual secret here, so gate on+ // that rather than on email verification.+ requireEmailVerificationOnInvitation: false,organizationHooks: {beforeCreateOrganization: async ({ organization }) => {const check = checkWorkspaceName(organization.name ?? "");