Playing
01. Introduction and demo

Transcript

00:00
So in this course, we're going to be covering passwordless authentication with Laravel. Now, we're going to do this completely from scratch within a fresh Laravel project without any starter kit. And the benefit of this is that as you follow along,
00:12
if you want to go ahead and implement this into a starter kit that you're already using or your own project structure, then you can do that. So we're going to take a look at how this works. I've got two screens up here. The first one is, of course, the login screen. And the second one here is just an empty page at the moment.
00:28
But once we are authenticated, we will see our username in here. Now, I've already created out a user in the database here. We will be covering registration in the course as well. But I'm going to go ahead and just enter the email address of my account.
00:42
And I'm going to hit get magic link. What that's going to do is go ahead and email me over a magic link. So if we head over to our email client, I'm just using a local mail client here. You can see, sure enough, we've got an email here with your magic login link with a button.
00:56
And of course, you can customize this email with a bit more text. When we go ahead and hit login, that's going to go ahead and forward us over to the app. And very instantly, we are now signed in. And we're now forwarded over to this page here, which we saw before.
01:10
And of course, now we're signed in. So we're going to be covering how to do this securely, which is, of course, really, really important. And like I mentioned, we're also going to allow the user to register as well.
01:21
So let's go ahead and register with a new email address here and a new name and hit sign up. What that's going to do is register the user. And then it's going to send them across a login link here. You can customize the flow of this.
01:34
We're going to be discussing that through the course. But as you can see here, I can now go ahead and sign in as the user I've just registered as. So let's get started in the next episode, where we're going to be building out this login page just here.

Episode summary

In this intro episode, we kick off our journey into building passwordless authentication in Laravel! Instead of using any built-in starter kits, we’re doing everything from scratch in a fresh Laravel project. That way, you can see how all the pieces come together, and even adapt what we do here to your own project, whether you’re starting with a starter kit or something totally custom.

We start with a quick demo of how the magic link login process works: enter your email, request a magic link, and check your inbox to find that one-click sign-in waiting for you. As soon as you hit the login button in your email, you’re instantly authenticated and forwarded into the app – no password required! We also take a look at the registration process, which works in a similar fashion and provides new users their own login link.

Throughout the course, we’ll walk through all the steps to set up this system securely—including sending those emails, registering users, and making sure everything’s locked down. In the next episode, we'll dive in and start by building the login page you just saw in the demo.

Episode discussion

No comments, yet. Be the first!