Report this

What is the reason for this report?

Authentication system with node, passport, ejs, mongodb

Posted on March 12, 2021

Hey, I have been trying to build an authentication system where I have taken more fields other than, the username and password. I wish to register a user and then, redirect him to a page but what happens is that after successful registration, the page is shown in the network tab of the developer’s console but not on the browser screen.I am using EJS, nodejs, mongo and express and passport



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Do you see any errors in the console as well? Also is the web application that you are building open source? If this is the case can you share a link to the source code here?

Additionally, here is a good tutorial which I could suggest starting with:

https://www.digitalocean.com/community/tutorials/api-authentication-with-json-web-tokensjwt-and-passport

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.