OpenAI Authentication Library for ChatGPT.
import Authenticator from 'openai-token'
const auth = new Authenticator('[email protected]', 'myPassword')
await auth.begin()
const token = await auth.getAccessToken()
Credits Thank you to:
- https://github.com/acheong08/OpenAIAuth original python implementation
- [rawandahmad698] for the reverse engineering of the protocol