It would be sweet to allow the redirectTo optional...
# ideas-and-suggestions
k
It would be sweet to allow the redirectTo optional param to work with regular magic link as well as just OAuth logins. Here's why our company needs this. We regularly have people try to access a resource (a custom portal where the url is sent to them in this case) that is authenticated by their email. We want the magic link to redirect back to that resource and not to a default url because the resource changes from user to user.
Like this
b
Have you tried this? It's not documented but it may actually work.
k
I have and unfortunately it doesn't work. I've looked through the code and it is really close to being able to work though. A few lines maybe.
It goes based off of what you have put in the top two fields
b
Post in Github Discussions: https://github.com/supabase/supabase/discussions It's a good idea and maybe some low-hanging fruit for someone who want to get started contributing.
k
Will do! Thank you.
I would love to help out with this as well. I am unfamiliar with working with open source repos though. Are there any resources to get started?
If you want to try to push code changes, try making a small PR to get a feel for the process. Usually the best thing to do if you've never done it before is to find something simple, like a documentation typo or something, and create a basic PR for that. That'll get your feet wet with the process.
k
Thank you!
Here is the link to the discussion post
2 Views