shouldUseNeomageAIAuth function

bool shouldUseNeomageAIAuth(
  1. List<String>? scopes
)

Check if the user has Neomage.ai authentication scope.

Implementation

bool shouldUseNeomageAIAuth(List<String>? scopes) {
  return scopes?.contains(neomageAiInferenceScope) ?? false;
}