M-Davies / eye-of-horus

A facial and gesture recognition authentication system
GNU General Public License v3.0
3 stars 0 forks source link

Add redirects for when specific tokens are not set #53

Closed M-Davies closed 3 years ago

M-Davies commented 3 years ago

E.g. authenticated and username and userexists will need to be set in order to access the dashboard. This can be achieved by automatically redirecting with an error alert to explain the situation if the specific tokens are not set

if(!token) {
  return <Login setToken={setToken} />
}