Hey all!
Working on getting sendgrid + magic links set up. I got it working a Reset Password flow, and then wanted to also allow regular magic login (like Slack). Problem is, there's only one env variable for magic_link_redirect_uri
– so the generate-magic-link
function is always generating the same URL, and can't dynamically tell if it should generate a URL to /login
or /resetpassword
What's the best way to do this? Two env variables? Some kind of param of what page (reset or login) that generate-magic-link
takes? 🤷🏼♀️
Not a blocker, obviously you can just log in with email/password 😊 but it'd be really nice!