This snippet is to conditionally render navbar items based on whether a user is logged in OR not. So toggle the ‘Login’ button to ‘Logout’ if the user is already logged in and vice versa. I admit it took more time that I had anticipated. Primarily because in the beginning I insisted on using a global variable in express to manage the user’s ‘isAuthenticated’ state
Simply Auth now on heroku!
Past week I’ve been fixing issues with the simply auth project now on heroku! https://simplyauth.herokuapp.com/ I will add a rate limiting feature to limit login attempts to 3 and call it a day with this project. Rate limiting helps with brute force attacks so that a request from the same I.P address cannot have an unlimited amount of login attempts. It also makes an ‘app’
Plug and Play Authentication for express.js
What started out as a small module has become a month long project. Some days I sleep well, other days I keep a notebook besides me to jot down ideas. I’ll be putting this project up on Product Hunt and Gumtree as a stand alone module for other developers to use. Version 1.0 has the following features: User can make an account using their
New project: Authentication from scratch
New project in progress… Vanilla JS project with: 3 Login strategies 2 password reset strategies Security precautions