Multiple redirect URIs for Magic Links?
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!
Answers
-
you can change any of this in the function stack! Hacking the setup to do what you want is part of what makes xano great - you are not locked into the extension setup. You have access to all the workings inside.
Also, give yourself permission to “do it wrong” first. You’ll learn a ton of you let yourself keep moving. You’ll wind up fixing a lot later but that’s true either way because of everything you’ve learned in the first part of the process!
-
Yes, I'm aware of all of that. I appreciate the enthusiasm but I don't need a pep talk. I am hoping to solicit some suggestions from folks who have already done this and get some pointers on best practices.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback