Unread Notifications

Latest Notifications

No Notifications

You're all set! Start a discussion by leaving a comment on a lesson or replying to an existing comment.

AdonisJS Quick Tip

Remember Me in AdonisJS Authentication

04:13 Watch
0:26 Read

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.

Watch on YouTube

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, grab it directly off the form body or validate it, and lastly provide it into the authentication methods.


🧳 References:

AdonisJS Remember Me Documentation
Bang Bang Operator


🕑 Chapters

00:00 - Intro
00:30 - Database & Model Setup
01:15 - Remember Me Form Checkbox
01:30 - Remember Me Off Request Body
02:36 - Remember Me With Validator
03:40 - Outro

Comment

Prepared By

Tom Gobich

Burlington, KY

Owner of Adocasts, JavaScript developer, educator, PlayStation gamer, burrito eater.

Visit Website