Beware of Node.js Authentication Tutorials

tl;dr: I went on a search of Node.js/Express.js authentication tutorials. All of them were incomplete or made a security mistake in some way that can potentially hurt new users. This post explores some common authentication pitfalls, how to avoid them, and what to do to help yourself when your tutorials don’t help you anymore. I am still searching for a robust, all-in-one solution for authentication in Node/Express that rivals Rails’s Devise. Your Node.js authentication tutorial…

"Beware of Node.js Authentication Tutorials"

choco messed up my node

choco install yarn Chocolatey v0.10.8 Installing the following packages: yarn By installing you accept licenses for the packages. nodejs.install v9.11.1 [Approved] nodejs.install package files install completed. Performing other installation steps. The package nodejs.install wants to run ‘chocolateyInstall.ps1’. Note: If you don’t run this script, the installation will fail. Note: To confirm automatically next time, use ‘-y’ or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[N]o/[P]rint): Timeout or your choice of…

"choco messed up my node"

nodemon errors

$ nodemon [nodemon] 1.9.2 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `ng serve` You seem to not be depending on “@angular/core”. This is an error. [nodemon] failed to start process, possible issue with exec arguments events.js:143 throw err; ^ Error [ERR_UNHANDLED_ERROR]: Unhandled error. (2) at Bus.emit (events.js:141:19) at ChildProcess. … blah blah blah … at ChildProcess.emit (events.js:160:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) Did i forget? $ npm install Again! $ npm…

"nodemon errors"