How to store different session in passport local
I have two type of users a normalUser and an adminUser. How can I store their sessions on a different variable so that i can use them on my template engine for viewing specifically for if else blocks. Normally its stored like. req.user is it possible to have a req.admin?
Im using express-handlebars, passport-local.
3.4K+ developers have started their personal blogs on Hashnode in the last one month.
Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more