bradtraversy / node_passport_login

Node.js login, registration and access control using Express and Passport
1.74k stars 1.29k forks source link

First time authentication gets hung, thereafter it works fine. #75

Open aneesh03-coder opened 4 years ago

aneesh03-coder commented 4 years ago

Hello,

Everytime , I am closing my browser, starting it, and then trying to log in, the page just gets stuck on the log in page showing processing request. But without doing anything if I click on the login or go to the URL localhost:5000/dashboard it shows authenticated and goes to the dashboard. Now after logging out , as many times I login with a new user , it happens in one shot.

Why is the logging in problem only happening for the first time after reopening the browser. I see that cookies are also not there once I reopen the browser.

Not being able to solve this issue. Can you please help?