jordanopensource / nuha-web

Web client for NUHA

Home Page:https://nuha.josa.ngo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auth Middleware

thamudi opened this issue · comments

Current behavior:

If the user tries to navigate to a protected route by the middleware, it will be redirected to api/auth/
which displays the nuxt auth login methods page.

Expected behavrio:

Just like the callback checks on each page, the user should be redirected to the login page if they try to access a protected page from the url.