Authenticate user by email and magic link #11136
Unanswered
matheusrocha89
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
In my project I am in a scenario that I would like to authenticate a user by email and magic link automatically. I will have a secure route on server side that when the user send the request with the email to there I would like to have the url of the magic link and redirect already the user to there without the need of him to go to email to click on the URL.
But it's been hard to find a solution for that because on the Email Provider flow everything happens under the hood (including the generation of the URL). Is there any way to do something like that? Or to get this URL on the server side?
I checked that on the rest API I can pass the csrf token and email to the
signin/email
route, but it doesn't say if it's in the body or the structure that should be send by post. Does this route returns the URL generated to be used in the magic link?Beta Was this translation helpful? Give feedback.
All reactions