code: func (t *Token) accessSet() accessSet {
  	if t.Claims == nil {
  		return nil
  	}
  
  	accessSet := make(accessSet, len(t.Claims.Access))
  
  	for _, resourceActions := range t.Claims.Access {
  		resource := auth.Resource{
  			Type: resourceActions.Type,
  			Name: resourceActions.Name,
  		}
  
  		set, exists := accessSet[resource]
  		if !exists {
  			set = newActionSet()
  			accessSet[resource] = set
  		}
  
  		for _, action := range resourceActions.Actions {
  			set.add(action)
  		}
  	}
  
  	return accessSet
  }
docs: // accessSet returns a set of actions available for the resource
  // actions listed in the `access` section of this token.