Setting Up Basic Authentication and Sessions on a GraphQL Server using Passport.js & Express Sessions.

A quick walkthrough on basic user authentication and persistence using Express sessions, Passport.js and GraphQL.

On a recent project, I decided to make the jump from the familiar world of REST APIs to running a…