From 07e3005e9cc0574def819d8bccf7a8baa28109b6 Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Tue, 8 Jul 2025 16:42:39 -0400 Subject: [PATCH] Remove session validation checks from vehicle selection and contact methods --- client.go | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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"]