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 GraphQL powered back-end, and (for the most part) it has changed everything about how I will develop my applications moving forward. With that bit of brown-nosing out of the way, there were a few heart aches and “clumps-of-hair-violently-removed-from-my-scalp” moments when the transition from REST to GraphQL wasn’t so obvious or 1:1. In my case specifically, the stress and mania came about when I found it extremely difficult to integrate my beloved Express sessions and Passport.js authentication middlewares into my GraphQL…


Taking a page from Event Oriented Programming.

Photo by Helloquence on Unsplash

It’s an adage as old as time itself: “If it’s something that’ll put you out of your comfort zone, it’s probably something worth doing”. While the first part of that sentence is a bit of a white lie having just made that phrase up, the latter half rings truer than ever in my mind as my latest co-endeavor, QLStico, tested everything I had learned as a developer in the last several months. This post could easily be a recounting of every single lesson I learned during this project (GraphQL, React Hooks, React Context, SSL, etc.), but instead I’ll share the…

Richie Pineda

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store