You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I relied heavily on this boilerplate project to set up my first Angular/Express app: thank you!
I've run into a problem on my project where sometimes I'll go to a page and my app things I'm not logged in, though I have an active session. If I reload the page, it immediately thinks I'm logged in again. I was able to stumble onto consistent reproduction steps today, and they work on this repo out of the box, with no modifications other than a console.log one line 5 of app/scripts/services/Auth.js.
To reproduce the issue, log in, then go to a page outside the app. Then use your browser's back button to return to your app. You'll find the user cookie is undefined, and the app thinks you're not logged in. If you reload the page, things are fine.
I'm going to try to solve this problem on my own, now, but I wanted to let you know about it and get the thoughts of a wiser mind than my own on the best way to fix it. I don't fully understand the reason for removing the cookie and getting it reset each time.
Please let me know if I can provide any more details, and thanks again for making this project!
The text was updated successfully, but these errors were encountered:
I relied heavily on this boilerplate project to set up my first Angular/Express app: thank you!
I've run into a problem on my project where sometimes I'll go to a page and my app things I'm not logged in, though I have an active session. If I reload the page, it immediately thinks I'm logged in again. I was able to stumble onto consistent reproduction steps today, and they work on this repo out of the box, with no modifications other than a console.log one line 5 of
app/scripts/services/Auth.js
.To reproduce the issue, log in, then go to a page outside the app. Then use your browser's back button to return to your app. You'll find the user cookie is undefined, and the app thinks you're not logged in. If you reload the page, things are fine.
This is because the cookie that gets set here isn't actually being called.
I'm going to try to solve this problem on my own, now, but I wanted to let you know about it and get the thoughts of a wiser mind than my own on the best way to fix it. I don't fully understand the reason for removing the cookie and getting it reset each time.
Please let me know if I can provide any more details, and thanks again for making this project!
The text was updated successfully, but these errors were encountered: