hasRequiredScopes method

  1. @override
bool hasRequiredScopes(
  1. List<String> tokenScopes,
  2. List<String> requiredScopes
)
override

Check if token has required scopes

Implementation

@override
bool hasRequiredScopes(List<String> tokenScopes, List<String> requiredScopes) {
  return requiredScopes.every((scope) => tokenScopes.contains(scope));
}