![Authentication](/img/1/authentication_1697770401414.png?w=800)
![Authentication](/img/1/authentication_1697770401414.png?w=192)
Authentication
AdonisJS Auth provides first-party support for authentication to AdonisJS. It supports sessions, API tokens, and basic authentication formats. API tokens can be database or Redis-driven. Auth integrates deeply within the HttpContext and Edge.
Series.
Lessons.
![Video preview](https://videos.adocasts.com/5a00acf7-11fe-4418-a025-49bea523c6b8/preview.webp)
![](/img/1/fixing-missing-profiles_1716382922650.jpeg?w=650)
How to Create and Fix Missing User Profiles in Your Application
Learn how to create and manage user profiles in your application. This tutorial covers adding an edit profile button, setting up routes and controllers, ensuring profile creation during registration, handling existing users without profiles, and verifying
![Video preview](https://videos.adocasts.com/1045e842-6895-4848-b3da-e1b2cad75463/preview.webp)
![AdonisJS 6 Access Token Authentication in 20 Minutes](/img/1/adonisjs-6-access-token-authentication-in-20-minutes_1716245176135.jpeg?w=650)
AdonisJS 6 Access Token Authentication in 20 Minutes
In this lesson, we'll cover how to implement access token authentication, using opaque tokens, in AdonisJS 6. We'll also take a look at what this would look like on the frontend via a Vue 3 app using Pinia
![Video preview](https://videos.adocasts.com/30fdf2bb-e40c-46ab-b0c7-55de69548b11/preview.webp)
![Remembering A User's Authenticated Session](/img/1/remembering-a-users-authenticated-session_1713911437512.jpeg?w=650)
Remembering A User's Authenticated Session
In this lesson, we'll learn how we can use AdonisJS' Remember Me Tokens feature to allow a user to specify they'd like their authentication state to be remembered for a long time across sessions.
![Video preview](https://videos.adocasts.com/0326dd32-f026-4172-b5ad-3c615d9b4abf/preview.webp)
![Logging In An Existing User](/img/1/logging-in-an-existing-user_1713910916927.jpeg?w=650)
Logging In An Existing User
In this lesson, we'll learn how we can login an existing user using just their email and password. We'll discuss how the AuthFinder mixin protects us from timing attacks, and how we can use it to verify the accuracy of a user's password.
![Video preview](https://videos.adocasts.com/8a4cc3b8-1160-4ccf-90a5-1ab701e95ae5/preview.webp)
![Logging Out An Authenticated User](/img/1/logging-out-an-authenticated-user_1713910484545.jpeg?w=650)
Logging Out An Authenticated User
In this lesson, we'll learn how to logout an authenticated user using a POST request with CSRF protection.
![Video preview](https://videos.adocasts.com/32c92812-4568-444c-a5ae-bd33b7adb5d4/preview.webp)
![Checking For and Populating an Authenticated User](/img/1/checking-for-and-populating-an-authenticated-user_1713558061741.jpeg?w=650)
Checking For and Populating an Authenticated User
In this lesson, we'll create a silent auth middleware that will automatically check whether a request has an authenticated user attached to it, and populate that user's details if one is found.
![Video preview](https://videos.adocasts.com/0236fb26-92a4-4f33-8d46-7f9c5ee2ec2f/preview.webp)
![Authenticating A Newly Registered User](/img/1/authenticating-a-newly-registered-user_1713557940626.jpeg?w=650)
Authenticating A Newly Registered User
In this lesson, we'll learn how we can authenticate, or login, a new user who just registered with our application. We'll then see how we can populate the authenticated user's details on subsequent requests.
![Video preview](https://videos.adocasts.com/b5a90412-ec8a-44a1-ae56-e797f502aba3/preview.webp)
![AdonisJS 6 Session Authentication in 15 Minutes](/img/1/adonisjs-6-session-auth-in-15-minutes_1713397471654.jpeg?w=650)
AdonisJS 6 Session Authentication in 15 Minutes
In this lesson, we'll learn how to add authentication to a new AdonisJS 6 application using the session guard. In these 15 minutes, you'll learn how to register a user, logout a user, verify a user's credentials and log them in, and more.
![Video preview](https://videos.adocasts.com/d8a6d8c3-98c6-4940-90f7-abc47a845746/preview.webp)
![Creating A Login Form and Validator](/img/1/creating-a-login-form_1712872122576.jpeg?w=650)
Creating A Login Form and Validator
In this lesson, we'll apply what we've learned to create a login page as well as a validator for our login form.
![AdonisJS API with Nuxt 3 Auth](/img/1/2023-06-adonisjs-api-nuxt-auth_1687611828254.png?w=650)
AdonisJS 5 API & Nuxt 3 SSR Authentication in 15 Minutes
In this lesson, we’ll learn how to set up authentication in an AdonisJS API application while using server-side rendered (SSR) Nuxt 3 as our front end.
![Handling Expired Auth Session](/img/1/2023-06-Expired-Auth-Session_1687039337983.png?w=650)
Gracefully Checking and Handling An Expired Auth Session
In this lesson, we’ll take a look at how to gracefully reset the user’s stale session, which includes authentication, CSRF tokens, or anything else you may have set for the user.
![subdomain sessions](/img/1/2023-subdomain-sessions_1677976430766.jpeg?w=650)
How To Seamlessly Share AdonisJS Sessions & Authentication Across Subdomains
In this lesson, we'll learn how one simple tweak to our AdonisJS project allows us to seamlessly share sessions and user authentication across multiple subdomains, as well as our application's primary domain.
![Remember Me Token](/img/1/2023-01-remember-me-token_1673477187975.jpeg?w=650)
Remember Me in AdonisJS Authentication
In this lesson, we'll take a look at how to remember the user's authentication session in AdonisJS Auth. We'll learn how to define the remember me checkbox within our form and more.
![Redirect back after login](/img/1/2022-12-Redirect-back-after-login_1672272893978.jpeg?w=650)
How To Redirect Back to the Previous Page After Login with AdonisJS
In this lesson, we'll learn an easy way we can redirect our user's back to their original page after they login or register in an AdonisJS application.
![Requiring Email Verification](/img/1/requiring-email-verification_1670509632651.jpeg?w=650)
Simple Steps To Require Email Verification In Your AdonisJS App
Learn how to require your users to verify their email address using a Token model with AdonisJS and Lucid ORM.
![Changelog #1 - Setup & Auth](/img/1/changelog-1_1670029153716.jpeg?w=650)
Creating Our AdonisJS Project & Getting Setup
In this stream, we'll start building a changelog application with AdonisJS
![NodeJS Password Reset Flow](/img/1/how-to-create-a-password-reset-flow-in-nodejs-2_1668885874679.jpeg?w=650)
How To Create A Password Reset Flow in NodeJS with AdonisJS
In this lesson, we'll cover, from start to finish, how to create your own password reset (or forgot password) flow in your NodeJS application with AdonisJS.
![User Role Authentication in 15 Minutes](/img/1/2022-User-Role-Auth-In-15-Minutes_1668034260916.jpeg?w=650)
AdonisJS User Role Authentication in 15 Minutes
In this lesson, we'll learn how we can specify user roles using a User and Role AdonisJS Model within our project.
![PDF Invoice Generator](/img/1/pdf-generator-2_1666522730364.jpeg?w=650)
Create a NodeJS PDF Generator that Sends the PDF as an Email Attachment with AdonisJS & Puppeteer
In this lesson, we'll be creating an application that creates a PDF from a styled page using AdonisJS, EdgeJS, and Puppeteer. Then, we'll learn how we can send this PDF as an email attachment.
![](/img/1/quick-tip-8_1653736984768.jpeg?w=650)
How To Make Your AdonisJS Authentication Login Case-Insensitive
Learn how to make the AdonisJS login attempt query case-insensitive easily by adding a simple method to our User Model.
Showing 1 to 20 of 26 results