-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Describe the bug
If you manually type /login, /signup, /recover-password in URL address while being authenticated you will be directed to these pages and stay on them without any redirect. this.props.isLoggedIn is undefined in this case in PublicRoute.js.
Same thing works if you click on "Reset Password" in the email let's say for the second time, you also land on /reset-password/token while being authenticated.
Is it because of local state, slow Redux or something else? In Meteor Pup it was easy cause userId was built-in and always there.
To Reproduce
Steps to reproduce the behavior:
- Go to
localhost:5000/documents - Type
localhost:5000/loginin URL
Expected behavior
Redirect to default authenticated page without loading 'Login' page UI
Desktop (please complete the following information):
- OS: MacOS 11.4
- Browser Chrome
- Version 90.0.4430.212
Metadata
Metadata
Assignees
Labels
No labels