Skip to content

Commit

Permalink
🐛 (auth) Fix magic link callback url pointing to internal url
Browse files Browse the repository at this point in the history
Closes #403
  • Loading branch information
baptisteArno committed Mar 28, 2023
1 parent cbeb275 commit 2946f3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/builder/src/pages/api/auth/sendVerificationRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2946f3e

Please sign in to comment.