Image for post

Two of my favorite frameworks when working in Typescript fullstack applications are NextJS and NestJS.

They give you sensible defaults for your app and make it easy to plugin additional functionality. One feature that most apps share is authenticating users.

In this series I will walk through a complete authentication flow with NextJS / NestJS. But I will not just provide you with copy and paste examples. I will give a primer on authentication and explain exactly why we make certain design decisions around our authentication. Let’s jump in!

The basics of authentication

Authentication in our app is responsible for making sure that we can identify each user that is trying to access resources on our app. On the other hand, authorization is responsible for making sure exactly which resources the user is allowed to access. …

About

Johannes Herrmann

Software Engineer and Entrepreneur. Currently fullstack lead at SAAS Typelane, previously co-founded Airinum. You can read more about me at https://johannes.co.

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