hasRole method
Check if user has specific role
Implementation
@override
Future<bool> hasRole(
String userId,
String role, {
String? resource,
Map<String, dynamic>? context,
}) async {
final data = await getAuthorization(
userId,
resource: resource,
context: context,
);
return data.hasRole(role);
}