Any ideas to create email magic links as auth?

Hey guys. I’m pretty familiar with Make.

I hope it is possible to implement a scenario to auth users with login as a click on disposable link. I don’t want to code or pay for saas solution.

Anyway it is just a puzzle for me to get solution with Make.

The task is:

  • i have a static html website
  • i have a list of emails i want to share this site with
  • i want it to be just a click on link to get access

My ideation is:

  • setup basic auth on website server with one login and password
  • if user is on the list (data store) - send them email with link to webpage, generated by webhook, adding random string
  • opening this page sets cookies for access and a random string as validation, and redirects to my website-
  • once the link is used it prevents second opening this link

What do you think about this flow? Did anyone make something like that?

Thank you

To enforce this your site will need some kind of database to store the unique code.

Technically you can use Make Data Store as a database, but I don’t advise it.

However if you want to do it, then just add two columns - one to store a UUID/random code, and another to store date used/or a Boolean value to flag that it has been used.

Then on your site, you cannot use basic auth, you’ll need to switch to a programming language on your client or server side, that calls Make to check for the user’s code, and sets it to “used”.

If you need help implementing this you can reach me at my contact form.

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!