Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(auth): allow linking social accounts with different emails

Tinc61356534839
diff --git a/apps/api/src/auth.ts b/apps/api/src/auth.ts
index 4efd4cc04..aa588f905 100644
--- a/apps/api/src/auth.ts
+++ b/apps/api/src/auth.ts
@@ -273,6 +273,7 @@ export const auth = betterAuth({
// Require the provider's verified-email claim for implicit linking;
// configuration alone must not make an unverified identity trusted.
enabled: true,
+ allowDifferentEmails: true,
// Only link to an existing local account after its email has been
// verified. Without this check, an attacker could pre-register a victim's
// email with a password account and retain access after the victim signs