cgpt-token
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

OpenAIAuth for Node.js

OpenAI Authentication Library for ChatGPT.

Usage

import Authenticator from 'cgpt-token'

const auth = new Authenticator('my@email.com', 'myPassword')
// proxy server [ip]:[port]
// const auth = new Authenticator('my@email.com', 'myPassword', '127.0.0.1:7890')
await auth.begin()
const token = await auth.getAccessToken()

Credits Thank you to:

Package Sidebar

Install

npm i cgpt-token

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

22.2 kB

Total Files

5

Last publish

Collaborators

  • bingco