AdonisJS Quick Tip #15.0

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.

🕑 Chapters

00:00 - Intro
00:15 - Default Behavior Example
00:42 - Adding Subdomain Route
02:00 - Inspection Adonis Session
02:38 - Adding Dot (.) Wildcard Session Cookie Prefix
03:30 - Testing Shared Session With Subdomain
03:54 - Outro

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.