Do you mean you’re trying to use a third-party website via OAuth? If so, there’s a specific protocol for that. You won’t be using Anvil’s magic link for that.
If you mean something else, then I’m not sure what that is.
The docs have this function that allows you to trigger the email from code: Anvil Docs | anvil.users
If you absolutely need to get the URL itself, you’ll probably need to build it yourself. It’s just a hash URL that executes the force_login function: Anvil Docs | anvil.users
I’m trying to get that link and save it to my users table, and not send the email directly.
Regarding the hash url - maybe this is the solution.
You are saying I need to create a new hash URL, with a form that will use the force login for that specific user_row, and once the user is logged in to redirect him to the home page?
Thanks, but when user the user signups in the landing page they will already provide a password. I’m trying to just save the magic_link URL for each user.
I’m struggling by to understand the security logic of storing a persistent magic link when their purpose is to expire. (I get it if you want save the hash url to a user profile page, which is accessible to them on single factor password auth).