Skip to content

Commit

Permalink
fix: use refresh_token on magic link sign up redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
komninoschatzipapas authored Apr 30, 2021
1 parent 735f27b commit 654dab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/auth/magic-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function magicLink({ query }: Request, res: Response): Promise<unknown> {
res.status(200).send('You have logged in')
} else if (action === 'sign-up') {
if (APPLICATION.REDIRECT_URL_SUCCESS) {
return res.redirect(APPLICATION.REDIRECT_URL_SUCCESS)
return res.redirect(`${APPLICATION.REDIRECT_URL_SUCCESS}?refresh_token=${refresh_token}`)
}

res.status(200).send('Your account has been activated. You can close this window and login')
Expand Down

0 comments on commit 654dab8

Please sign in to comment.