Remove session validation checks from vehicle selection and contact methods
Some checks failed
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Failing after 24s
Some checks failed
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Failing after 24s
This commit is contained in:
16
client.go
16
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"]
|
||||
|
Reference in New Issue
Block a user