Commit de3b60f1 authored by Skippy's avatar Skippy

Info Logging for initSession()

parent b35c106b
...@@ -157,7 +157,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -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 { ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment