End-to-end Authentication

End-to-end Authentication

49mins
7 lessons
Beginner
Start course

Just like the title suggests, this course will cover every aspect of authentication in AdonisJS from user registration down to logging out. We'll cover things like email verification, logging in before and after email verification, remembering logged-in users, password reset, restricting routes to authenticated or guest users. Finally, we'll look at how to implement redirecting users to their intended routes upon login.

Getting Started

Welcome to the end-to-end authentication course. As usual, let's take a look at the overview of the course and what we'll be building.

This course will focus more on the backend logic, so I have prepared a starter project which we'll build on. The starter project contains the necessary base markup as well as some basic setup. You can grab the starter project from GitHub.

Before we can perform any kind of authentication in AdonisJS, we need to first install and configure the auth module. In this lesson, we'll be doing just that.

Register

With all the setup out of the way, let's add our first functionality, which is user registration.

Email verification

One way of making sure your application is been used by actual users is to ensure users verify their email addresses. You can decide to restrict access to only certain features pending upon email verification or restrict total access until email verification. In this lesson, we are going to implement email verification.

In the last lesson, we saw how to send email verification links to users upon creating an account. Now, let's add the implementation for users to actually verifying their email addresses.

There are times for whatsoever reasons users don't get sent the verification emails or maybe the one they were sent got expired. In this lesson, we allow users the ability to request verification emails to be resent.

*Course still in development. Do check back often for updates.

Chimezie Enyinnaya

Hi, I'm Chimezie Enyinnaya, your teacher.

I’m a self-taught software developer based in Lagos, Nigeria, with over 8 years of experience. In the last couple of years, I've been doing more teaching because I enjoy sharing my knowledge so that others can benefit from it. Come along as I teach you all I know about AdonisJS, Node.js, and JavaScript at large!