Closed Wilsonator123 closed 5 months ago
Created a middleware in ./client and routes for checking permissions
./client
The thought process:
/auth/hasPermissions
/login
/404
resolves #18
Created a middleware in
./client
and routes for checking permissionsThe thought process:
/auth/hasPermissions
with the permissions required in the body/login
or/404
I would like opinions on the process and whether there are 'better' ways to approach this
I have yet to test this end-to-end, but have used postman to test the cookies
We also should looke at what permissions are and what we need where (user:logged_in, user:read) etc.