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
Hello, Notice the line Users.methods.usAuthed() and you can see that its calling !!asteroid.userId . My login form works fine, but I'm trying to make a react-router authorization wall which means the router will load the component when the authorization check returns true.
Hello, Notice the line
Users.methods.usAuthed()
and you can see that its calling!!asteroid.userId
. My login form works fine, but I'm trying to make a react-router authorization wall which means the router will load the component when the authorization check returns true.I've investigated further and Users.methods.usAuthed() returns false after passing a 404 url matching this guide: https://reacttraining.com/react-router/web/example/no-match
/src/components/PrivatePage.tsx
/src/data/users.tsx
/routes/App.tsx
Posted to SO: https://stackoverflow.com/questions/45738542/react-router-nomatch-causes-asteroid-userid-to-return-falsey
The text was updated successfully, but these errors were encountered: