# openai-token

> OpenAI Authentication Library for ChatGPT.

Latest version **1.0.0** (published 2023-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install openai-token
pnpm add openai-token
yarn add openai-token
bun add openai-token
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-02-20 |
| First published | 2023-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 3 |
| Unpacked size | 19 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55 |
| Author | Michaël de Marliave |
| Maintainers | michael-dm |
| Keywords | openai, auth, chatgpt, gpt3, gpt-3 |

## Links

- npm: https://www.npmjs.com/package/openai-token
- Repository: https://github.com/michael-dm/openai-token
- Homepage: https://github.com/michael-dm/openai-token#readme
- Issues: https://github.com/michael-dm/openai-token/issues
- npm.io page: https://npm.io/package/openai-token

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^1.3.3
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^4.1.2
- [axios-cookiejar-support](https://npm.io/package/axios-cookiejar-support.md) ^4.0.6

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-02-20

## README

# OpenAIAuth for Node.js
OpenAI Authentication Library for ChatGPT.

### Usage
```js
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:

- 
- [rawandahmad698] for the reverse engineering of the protocol

---
_Source: https://npm.io/package/openai-token · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
