acheong08 / ChatGPT

Reverse engineered ChatGPT API
GNU General Public License v2.0
28k stars 4.48k forks source link

Email/Password storing the Access token #1476

Open Swiftgti opened 1 year ago

Swiftgti commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

Use Email/Password for config the script but to be used only when Access token is expired, so always uses the Access token stored and only when it is expired the Access token the Email/Password is used, for creating a new Access token and store it in a file. So this way every time that the script executes don't do a login only uses the Access token and only do the Email/Password authentication when really is needed.

Proposed workflow

1 Email/Password authentication stores Access token in a file 2 every time the scrips execute uses stored Access token 2 only authenticates with Email/Password when Access token is expired and renews the file

Additional information

No response

MapleLCG commented 1 year ago

in fact, it does work like that.

Swiftgti commented 1 year ago

Good, genius. Let me ask. Where is stored the access token. ?

MapleLCG commented 1 year ago

Good, genius. Let me ask. Where is stored the access token. ?

dir named “revChatGPT” in userhome