This PR adds in middleware which will convert a jwt auth into a role object that gets added to the AuthenticatedRequest interface.
As of now being an administrator doesn't actually provide special access to anything, but providing that access will be as simple as checking req.isAdministrator once this is merged.
This PR adds in middleware which will convert a jwt auth into a
role
object that gets added to the AuthenticatedRequest interface.As of now being an administrator doesn't actually provide special access to anything, but providing that access will be as simple as checking
req.isAdministrator
once this is merged.