code: func CheckScopes(possibleScopes []string, authorizedScopes []string) bool {
  	if len(possibleScopes) == 0 {
  		return true
  	}
  
  	for _, allowed := range possibleScopes {
  		for _, scope := range authorizedScopes {
  			if scope == allowed {
  				return true
  			}
  		}
  	}
  	return false
  }
docs: // CheckScopes checks whether one of the possibleScopes is in the authorized scopes list