hasAllPermissions method
Check if token holder has all of the specified permissions
Implementation
Future<bool> hasAllPermissions(
String token,
List<String> permissions, {
String? resource,
Map<String, dynamic>? context,
}) async {
try {
final contextObj = await authorize(
token,
resource: resource,
context: context,
);
return contextObj.hasAllPermissions(permissions);
} on Exception {
return false;
}
}