diff --git a/client.go b/client.go index 5a9f3ce..4ca54f6 100644 --- a/client.go +++ b/client.go @@ -127,12 +127,6 @@ func (c *Client) SelectVehicle(vin string) (*VehicleData, error) { } vinCheck(vin) - // Validate session before executing the request - if !c.validateSession() { - c.logger.Error(APP_ERRORS["SESSION_EXPIRED"]) - return nil, errors.New(APP_ERRORS["SESSION_EXPIRED"]) - } - params := map[string]string{ "vin": vin, "_": timestamp()} @@ -325,11 +319,11 @@ func (c *Client) SubmitAuthCode(code string, permanent bool) error { // getContactMethods retrieves the available contact methods for two-factor authentication (2FA). // {"success":true,"dataName":"dataMap","data":{"userName":"a**x@savin.nyc","email":"t***a@savin.nyc"}} func (c *Client) getContactMethods() error { - // Validate session before executing the request - if !c.validateSession() { - c.logger.Error(APP_ERRORS["SESSION_EXPIRED"]) - return errors.New(APP_ERRORS["SESSION_EXPIRED"]) - } + // // Validate session before executing the request + // if !c.validateSession() { + // c.logger.Error(APP_ERRORS["SESSION_EXPIRED"]) + // return errors.New(APP_ERRORS["SESSION_EXPIRED"]) + // } params := map[string]string{} reqUrl := MOBILE_API_VERSION + apiURLs["API_2FA_CONTACT"]