yolkbot 0.1.1-alpha.38 → 0.1.1-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/build/global.js +5 -5
- package/browser/build/module.js +3 -3
- package/package.json +1 -1
- package/src/api.js +6 -1
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -93,8 +93,10 @@ async function loginWithCredentials(email, password, prox = '', instance = 'shel
|
|
|
93
93
|
returnSecureToken: true
|
|
94
94
|
}, {
|
|
95
95
|
headers: {
|
|
96
|
+
'origin': 'https://shellshock.io',
|
|
96
97
|
'user-agent': UserAgent,
|
|
97
|
-
'x-client-version': 'Chrome/JsCore/9.17.2/FirebaseCore-web'
|
|
98
|
+
'x-client-version': 'Chrome/JsCore/9.17.2/FirebaseCore-web',
|
|
99
|
+
'x-firebase-locale': 'en'
|
|
98
100
|
},
|
|
99
101
|
httpsAgent: (ProxiesEnabled && prox) ? new SocksProxyAgent(prox) : false
|
|
100
102
|
})
|
|
@@ -107,6 +109,9 @@ async function loginWithCredentials(email, password, prox = '', instance = 'shel
|
|
|
107
109
|
console.error('loginWithCredentials: Network req failed (auth/network-request-failed), retrying, k =', k);
|
|
108
110
|
} else if (error.code == 'auth/missing-email') {
|
|
109
111
|
return 'firebase_no_credentials';
|
|
112
|
+
} else if (error.code == 'ERR_BAD_REQUEST') {
|
|
113
|
+
console.error('loginWithCredentials: Error:', email, password);
|
|
114
|
+
console.error('loginWithCredentials: Error:', error.response?.data || error, 'k =', k);
|
|
110
115
|
} else {
|
|
111
116
|
console.error('loginWithCredentials: Error:', email, password);
|
|
112
117
|
console.error('loginWithCredentials: Error:', error, 'k =', k);
|