SudoSOS Back-end API / rbac / AssignmentCheck
Type Alias: AssignmentCheck() ​
ts
type AssignmentCheck = (user) => Promise<boolean>;The assignment check is a predicate performed on a user to determine whether or not the user has the given role. This predicate could perform database queries or other API calls, but should resolve swiftly as it delays login requests et cetera.
Parameters ​
| Parameter | Type |
|---|---|
user | User |
Returns ​
Promise<boolean>