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.

Start a personal dev blog on your domain for free and grow your readership.

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

No Comments Yet