hasScopes method

bool hasScopes(
  1. List<String> requiredScopes
)

Check if context has all required scopes

Implementation

bool hasScopes(List<String> requiredScopes) {
  return requiredScopes.every((scope) => scopes.contains(scope));
}