Let's Learn AdonisJS 6: Ep 7.5 - Remembering A User's Authenticated Session

Опубликовано: 12 Ноябрь 2024
на канале: Adocasts
331
16

Learn how to add the remember me authentication feature!

👍 If You Enjoy This Video, Consider Hitting The Like Button!

👨‍💻 Series Source Code: https://github.com/adocasts/lets-lear...

🥁 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

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.

⏰ Timestamps
00:00 - The Default Session Lifespan
00:48 - Remember Me Tokens Migration
02:29 - Adding the DbRememberMeTokensProvider
03:03 - Enabling the Remember Me Feature
03:34 - Adding A Remember Me Checkbox
04:03 - Remembering A User's Auth State
05:28 - Testing Our Remember Me Feature

------------------------- Socials --------------------------

Website: https://adocasts.com
Threads: https://threads.net/@adocasts
Twitter:   / adocasts  
GitHub: https://github.com/adocasts