Info Logging for initSession()

pull/200/head
Skippy 2022-12-25 09:53:47 +02:00
rodzic b35c106bf8
commit de3b60f1f8
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -157,7 +157,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
this._page.on('response', this._onResponse.bind(this)) this._page.on('response', this._onResponse.bind(this))
// bypass cloudflare and login // bypass cloudflare and login
await getOpenAIAuth({ var authInfo = await getOpenAIAuth({
email: this._email, email: this._email,
password: this._password, password: this._password,
browser: this._browser, browser: this._browser,
@ -165,6 +165,8 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
isGoogleLogin: this._isGoogleLogin, isGoogleLogin: this._isGoogleLogin,
isMicrosoftLogin: this._isMicrosoftLogin isMicrosoftLogin: this._isMicrosoftLogin
}) })
console.log('Cloudflare Cookie: ', authInfo.clearanceToken)
console.log('Useragent: ', authInfo.userAgent)
} catch (err) { } catch (err) {
if (this._browser) { if (this._browser) {
await this._browser.close() await this._browser.close()