fix: uncomment better auth plugins

This commit is contained in:
Henry
2025-05-06 13:50:26 +01:00
parent 5d46eb4c6b
commit 9c9107e5eb

View File

@@ -41,14 +41,14 @@ export const auth = betterAuth({
},
},
plugins: [
// apiKey(),
// magicLink({
// sendMagicLink: async ({ email, url }) => {
// await sendEmail(email, "Sign in to kan.bn", "MAGIC_LINK", {
// magicLoginUrl: url,
// });
// },
// }),
apiKey(),
magicLink({
sendMagicLink: async ({ email, url }) => {
await sendEmail(email, "Sign in to kan.bn", "MAGIC_LINK", {
magicLoginUrl: url,
});
},
}),
],
hooks: {
// after: createAuthMiddleware(async (ctx) => {