From 4f33703d428a80eebd8b3b0d23d9b2751056969b Mon Sep 17 00:00:00 2001 From: Allan Oricil Date: Fri, 24 Feb 2023 17:06:02 -0300 Subject: [PATCH] add node js lib in the Access Token section --- readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e304db4..65bc16c 100644 --- a/readme.md +++ b/readme.md @@ -318,7 +318,11 @@ To use `ChatGPTUnofficialProxyAPI`, you'll need an OpenAI access token from the 1. Use [acheong08/OpenAIAuth](https://github.com/acheong08/OpenAIAuth), which is a python script to login and get an access token automatically. This works with email + password accounts (e.g., it does not support accounts where you auth via Microsoft / Google). -2. You can manually get an `accessToken` by logging in to the ChatGPT webapp and then opening `https://chat.openai.com/api/auth/session`, which will return a JSON object containing your `accessToken` string. +2. or if you prefer to work with Node JS, use [AllanOricil/chat-gpt-authenticator](https://github.com/AllanOricil/chat-gpt-authenticator) to get an access token. + +3. You can manually get an `accessToken` by logging in to the ChatGPT webapp and then opening `https://chat.openai.com/api/auth/session`, which will return a JSON object containing your `accessToken` string. + + Access tokens last for ~8 hours.