Methods
(static) registerResolver(role, resolver)
Add custom handler for roles.
Parameters:
Name | Type | Description |
---|---|---|
role |
String | Name of role. |
resolver |
function | Function that determines if a principal is in the specified role. Should provide a callback or return a promise. |
- Source: