Add a wrapper around Route from react-router-dom to prevent users who aren't logged in from visiting certain pages. Also add functionality for role based access, but don't worry about implementing user roles (user roles will be stored in cookies).
See the WMK example from last year. verifyToken will be completed in a later sprint, so just add a dummy function there for now.
Add a wrapper around
Route
fromreact-router-dom
to prevent users who aren't logged in from visiting certain pages. Also add functionality for role based access, but don't worry about implementing user roles (user roles will be stored in cookies).See the WMK example from last year.
verifyToken
will be completed in a later sprint, so just add a dummy function there for now.