How to restrict access using Passport.js role-based authorisation

08 October, 2019.

Welcome to our mini-series on Authentication using Node.js, Express, and Passport.js. This comprehensive series is designed to teach you everything you need to know, as well as give you all the code required, to add authentication and authorisation to your existing website, or for a new-build from-scratch project. So far in this series, we have discussed at length Passport.js and JWT. We created our project using Next.js, we wrote a login page and registration page using Material UI for the…

Continue reading

How to add Passport.js Facebook Strategy to your website

07 October, 2019.

Welcome to our mini-series on Authentication using Node.js, Express, and Passport.js. This comprehensive series is designed to teach you everything you need to know, as well as give you all the code required, to add authentication and authorisation to your existing website, or for a new-build from-scratch project. So far in this series, we have discussed at length Passport.js and JWT. We created our project using Next.js, we wrote a login page and registration page using Material UI for the…

Continue reading

How to add Passport.js Google OAuth Strategy to your website

06 October, 2019.

Welcome to our mini-series on Authentication using Node.js, Express, and Passport.js. This comprehensive series is designed to teach you everything you need to know, as well as give you all the code required, to add authentication and authorisation to your existing website, or for a new-build from-scratch project. So far in this series, we have discussed at length Passport.js and JWT. We created our project using Next.js, we wrote a login page and registration page using Material UI for the…

Continue reading

How to protect your website using Passport.js and JWT

05 October, 2019.

In the previous post in this mini-series, we started our conversation about building an authentication system using Node.js, Express and Passport.js. This tutorial assumes that you already have a starting point (a login/registration form, and access to an Express back-end), if you do not, please check out the aforementioned blog post. If you already have these pieces in place, then you’re ready to get started. The purpose of this post is to go in to the specifics of wiring up Passport.js JWT…

Continue reading

Build an authentication system using Node.js, Express, and Passport.js

04 October, 2019.

Welcome to our mini-series on Authentication using Node.js, Express, and Passport.js. This comprehensive series is designed to teach you everything you need to know, as well as give you all the code required, to add authentication and authorisation to your existing website, or for a new-build from-scratch project. You will learn; How to set-up Next.js (React.js), with a custom Express.js back-end How to build a login and registration page, using Material UI How to set-up Passport.js with JSON…

Continue reading