// whether the auth already exists
whether the auth already exists
// whether the auth already exists
func (s *MgoAuthStore) Exist(auth o2x.Auth) bool {
	au, err := s.Find(auth.GetClientID(), auth.GetUserID())
	if err != nil {
		return false
	}
	return au.Contains(auth.GetScope())
}
func ( s * MgoAuthStore ) Exist ( auth o2x . Auth ) bool { au , err := s . Find ( auth . GetClientID ( ) , auth . GetUserID ( ) ) if err != nil { return false } return au . Contains ( auth . GetScope ( ) ) }
whether the auth already exists
whether the auth already exists