// RemoveByAccount remove exists token info by userID and clientID
RemoveByAccount remove exists token info by userID and clientID
// RemoveByAccount remove exists token info by userID and clientID
func (ts *MgoTokenStore) RemoveByAccount(userID string, clientID string) (err error) {
	ts.H(ts.collection, func(c *mongo.Collection) {
		res, err := c.DeleteMany(nil, bson.M{"UserID": userID, "ClientId": clientID})
		if err == nil && res.DeletedCount == 0 {
			objectID, err := primitive.ObjectIDFromHex(userID)
			if err == nil {
				_, err = c.DeleteMany(nil, bson.M{"UserID": objectID, "ClientId": clientID})
			}
		}
	})
	return
}
func ( ts * MgoTokenStore ) RemoveByAccount ( userID string , clientID string ) ( err error ) { ts . H ( ts . collection , func ( c * mongo . Collection ) { res , err := c . DeleteMany ( nil , bson . M { " " : userID , " " : clientID } ) if err == nil && res . DeletedCount == 0 { objectID , err := primitive . ObjectIDFromHex ( userID ) if err == nil { _ , err = c . DeleteMany ( nil , bson . M { " " : objectID , " " : clientID } ) } } } ) return }
RemoveByAccount remove exists token info by userID and clientID
RemoveByAccount remove exists token info by userID and clientID