allowsScope method

bool allowsScope(
  1. AuthScope scope
)

Whether or not this client can issue tokens for the provided scope.

Implementation

bool allowsScope(AuthScope scope) {
  return allowedScopes!
      .any((clientScope) => scope.isSubsetOrEqualTo(clientScope));
}