🐛 (auth) Fix magic link callback url pointing to internal url
Closes #403
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user