🐛 (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({
|
}/api/auth/callback/email?${new URLSearchParams({
|
||||||
email: identifier,
|
email: identifier,
|
||||||
token,
|
token,
|
||||||
|
callbackUrl: `${process.env.NEXTAUTH_URL}/signin`,
|
||||||
}).toString()}`
|
}).toString()}`
|
||||||
await sendMagicLinkEmail({ url, to: identifier })
|
await sendMagicLinkEmail({ url, to: identifier })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user