2
0

🐛 (auth) Fix magic link callback url pointing to internal url

Closes #403
This commit is contained in:
Baptiste Arnaud
2023-03-28 09:51:01 +02:00
parent cbeb275164
commit 2946f3ee3b

View File

@@ -12,6 +12,7 @@ export const sendVerificationRequest = async ({ identifier, token }: Props) => {
}/api/auth/callback/email?${new URLSearchParams({
email: identifier,
token,
callbackUrl: `${process.env.NEXTAUTH_URL}/signin`,
}).toString()}`
await sendMagicLinkEmail({ url, to: identifier })
} catch (err) {