refactor: account linking

This commit is contained in:
Bereket Engida
2024-09-28 00:46:04 +03:00
parent ab851ad3cf
commit f4e1d96662
4 changed files with 18 additions and 34 deletions

View File

@@ -92,4 +92,10 @@ export const auth = betterAuth({
clientSecret: process.env.GOOGLE_CLIENT_SECRET || "",
},
},
account: {
accountLinking: {
trustedProviders: ["google", "github"],
requireEmailVerified: true,
},
},
});