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