ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG] Session token will change when refresh the browser

Open quqxui opened this issue 2 years ago • 5 comments

Session token will change when refreshing the browser, which makes it impossible to request automatically.

Can this package use the username and password rather than token?

quqxui avatar Jan 17 '23 07:01 quqxui

same error

x7peeps avatar Jan 18 '23 04:01 x7peeps

I don't think it possible when openai have Captcha, can only look forward for official api. Or you can try use some other library to build a login helper.

rzbdz avatar Jan 18 '23 18:01 rzbdz

Read Wiki. We support Microsoft login and email/password. Email/password login requires 2Captcha account.

acheong08 avatar Jan 18 '23 22:01 acheong08

https://github.com/acheong08/ChatGPT/wiki/Setup#emailpassword-login-authentication

acheong08 avatar Jan 18 '23 22:01 acheong08

Session token will change when refreshing the browser, which makes it impossible to request automatically.

Once you get a session token, it is recommended that you close the browser. The session token refreshes automatically when you make requests via this library

acheong08 avatar Jan 18 '23 22:01 acheong08