Learn how to add access token auth to a new AdonisJS 6 app
👍 If You Enjoy This Video, Consider Hitting The Like Button!
🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...
Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing
🧾 Find The Code For This Lesson Here: https://github.com/adocasts/adonisjs-...
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
🕑 Chapters
00:00 - Creating Our AdonisJS 6 Project
00:50 - Creating Our Vue 3 Project
01:20 - Opening Our Projects
01:50 - Setting Up Our AdonisJS 6 Project
03:00 - Creating Our Auth Controller & Validator
03:17 - Defining Our Register & Login Validators
04:53 - Registering A User
05:55 - User Access Tokens Provider
06:40 - Logging In A User
07:40 - Logging Out A User
08:28 - Getting An Authenticated Users Details
08:56 - Defining Our Auth Routes
10:13 - Creating A Register Page & Form
11:17 - Creating A Login Page & Form
11:34 - Defining Register & Login Page Routes
11:50 - Creating An Auth Pinia Store
12:55 - Creating An API Helper Function
14:25 - Authenticating A User In Our Pinia Store
14:49 - Auth Store Login & Register Methods
15:18 - Auth Store Logout Method
15:40 - Auth Store Get User Details
16:06 - Register & Login A User On Form Submit
17:02 - Auth User Details & Logout Form
18:10 - Testing Our Authentication Flow
-------------------------Socials--------------------------
🕸️ Website: https://adocasts.com
🐦 Twitter: / adocasts
👍 GitHub: https://github.com/adocasts
Watch video AdonisJS 6 Access Token Authentication in 20 Minutes online without registration, duration hours minute second in high quality. This video was added by user Adocasts 04 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,65 once and liked it 4 people.