diff --git a/internal/handlers/auth.go b/internal/handlers/auth.go index 0e62f89..4ff5a6c 100644 --- a/internal/handlers/auth.go +++ b/internal/handlers/auth.go @@ -218,7 +218,7 @@ func LoginRefreshSSOToken() error { req.Header.Set("User-Agent", "okhttp/4.2.2") req.Header.Set("ssoToken", tokenData.SSOToken) req.Header.Set("uniqueid", tokenData.UniqueID) - req.Header.Set("deviceid",utils.GetDeviceID()) + req.Header.Set("deviceid", utils.GetDeviceID()) // Send the request resp := fasthttp.AcquireResponse() diff --git a/pkg/store/store.go b/pkg/store/store.go index b0c814a..b870a07 100644 --- a/pkg/store/store.go +++ b/pkg/store/store.go @@ -30,7 +30,7 @@ var KVS *TomlStore func Init() error { KVS = &TomlStore{} // store_vX.toml, where X is changed whenever new version requires re-login - filename := filepath.Join(GetPathPrefix(), "store_v3.toml") + filename := filepath.Join(GetPathPrefix(), "store_v4.toml") KVS.mu.Lock() defer KVS.mu.Unlock() diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 437cd53..ca9df64 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -125,7 +125,7 @@ func LoginVerifyOTP(number, otp string) (map[string]string, error) { Platform: LoginPayloadDeviceInfoInfoPlatform{ Name: "SM-G930F", }, - AndroidID: "6fcadeb7b4b10d77", + AndroidID: GetDeviceID(), }, }, } @@ -249,7 +249,7 @@ func Login(username, password string) (map[string]string, error) { Name: "vbox86p", Version: "8.0.0", }, - AndroidID: "6fcadeb7b4b10d77", + AndroidID: GetDeviceID(), }, }, }