From 9e56ea2e325b916cbbca24f0478bf91484bf7668 Mon Sep 17 00:00:00 2001 From: Fraol Lemecha Date: Fri, 13 Dec 2024 21:23:13 +0300 Subject: [PATCH] docs: fix invalid typescript in magic-link docs (#877) --- docs/content/docs/plugins/magic-link.mdx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/content/docs/plugins/magic-link.mdx b/docs/content/docs/plugins/magic-link.mdx index 580aa1ddc7..91bcd94418 100644 --- a/docs/content/docs/plugins/magic-link.mdx +++ b/docs/content/docs/plugins/magic-link.mdx @@ -19,11 +19,7 @@ Magic link or email link is a way to authenticate users without a password. When export const auth = betterAuth({ plugins: [ magicLink({ - sendMagicLink: async ({ - email: string, - token: string, - url: string - }, request) => { + sendMagicLink: async ({ email, token, url }, request) => { // send email to user } })