UNPKG

authorization-z

Version:

`Authorization-Z` is a comprehensive Express middleware package for validating JWT Authorization-Z tokens, attaching permissions to requests, verifying permissions, and granting access accordingly. This package provides a robust solution for implementing

12 lines 807 B
{ "errors": { "AUTHORIZATION_Z_TOKEN_MISSING": "Authorization Z token is missing", "AUTHORIZATION_Z_SECRET_MISSING": "Authorization Z secret is not configured", "AUTHORIZATION_Z_TOKEN_EXPIRED": "Authorization Z token is expired", "AUTHORIZATION_Z_TOKEN_VERIFICATION_FAILED": "Authorization Z token verification failed", "INVALID_AUTHORIZATION_Z_TOKEN": "Authorization Z token is invalid", "VALID_PERMISSIONS_REQUIRED": "Permissions are either missing, malformed, or in an incorrect format. Please ensure that the permissions are provided as a valid object, not an array or undefined.", "MODULE_ACCESS_DENIED": "Access denied. You do not have access to this module", "ACTION_ACCESS_DENIED": "Access denied. You do not have permission to perform this action" } }