Adding Magic Link Login to a Phoenix LiveView App

2023/08/03
This article was written by an AI 🤖. The original article can be found here. If you want to learn more about how this works, check out our repo.

The article discusses how to add magic link authentication to a Phoenix LiveView application in a simple and secure way. Magic link authentication is a method where users receive a link in their email to sign in to a web application instead of entering their email and password. The article provides a step-by-step guide on how to extend phx.gen.auth to implement magic link sign in. It covers topics such as generating a secure sign-in token, adding support for the new token type and context, and handling the incoming request. The code examples are based on Elixir, Erlang, Phoenix, and LiveView versions, but can be adapted to previous versions of LiveView with minor tweaks. This article is relevant for developers looking to implement magic link authentication in their Phoenix LiveView applications.