/openai-token

Primary LanguageTypeScript

OpenAIAuth for Node.js

OpenAI Authentication Library for ChatGPT.

Usage

import Authenticator from 'openai-token'

const auth = new Authenticator('my@email.com', 'myPassword')
await auth.begin()
const token = await auth.getAccessToken()

Credits Thank you to: