Open rasliche opened 3 years ago
To better match other authentication models, change permissions from an Object structure to a simple Array.
roles: [ 'admin', 'manager:{shopId}', 'user', 'staff', 'volunteer']
A client side auth check can take place against the roles field in Nuxt/auth.
A server side auth check can take place in Express middleware.
Proposal:
To better match other authentication models, change permissions from an Object structure to a simple Array.
roles: [ 'admin', 'manager:{shopId}', 'user', 'staff', 'volunteer']
A client side auth check can take place against the roles field in Nuxt/auth.
A server side auth check can take place in Express middleware.