Buy Now and unlock this series
$
49
.99
$
29
.99
yours forever
$
49
.99
$
29
.99
Become a Pro and unlock everything
$
24
.99
per month
$
24
.99
Dot ENV
Before we go any further, we will take a minute to set up dot ENV support in our app. This is important if we want to share secrets and keys but keep the values hidden from the public.
npm install —save dotenv
Downloads
Become a pro to download code and videos
Node Fundamentals Authentication
23 videos
Released: February 28 2021Course Instructor
Scott Tolinski
- Node Fundamentals Authentication
0m52s - ESM and Getting Started
10m1s - Fastify Up and Running
17m46s - Dot ENV
6m51s - Connecting To MongoDB
17m49s - Mongo Compass
5m28s - Forms with VanillaJS
14m6s - Fetch Post Requests
9m34s - What Is Encryption, Salting, and Hashing
11m37s - Salting and Hashing
12m9s - User Records
9m36s - Login UI Flow
9m20s - Authorization with Compare
10m4s - HttpOnly Cookies Vs Browser
10m36s - WTF Is A JWT
6m56s - Refresh Vs Access Tokens and Sessions
12m51s - Setting and Getting HTTPOnly Cookies
15m26s - Creating Sessions
22m0s - Creating and Storing Our JWTs
15m27s - Decoding Our JWT and UI Access
23m52s - Refresh Tokens
18m9s - Logout
14m57s - Cleanup and Polish
14m24s
Comments
Hartwig
12 months ago [edited]
On windows 10.
in env.js just add an object with path: 'src/.env In fact, the dotenv will work just as here. Trying to make use of the preloading does not make the trick. It is just so that the library, at least on windows does use this additional path info.
--> dotenv.config( { path: 'src/.env' } )
Cheers
Want to join the conversation?
Become a Pro member today!