Socket
Socket
Sign inDemoInstall

chatgpt-token

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatgpt-token

A npm package to get chatgpt token by your username and password.


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

chatgpt-token

A npm package to get chatgpt token by your username and password.

Requirement

This package use playright to simulate login behavior, and use chromium hardless mode.

so you need to install chromium first.

npx playwright install chromium

Uages

npm install chatgpt-token
// cjs
const {chatgptToken} = require("chatgpt-token")
// mjs
import {chatgptToken} from "chatgpt-token/module"

(async function(){
  const token = await chatgptToken('username','password')
  if (!token) {
    console.log("error")
  } else {
    console.log(token)
  }
})()

HTTP API Server

I also write a http server to do this thing, and it has a docker image to easily deploy. Here is:

  • chatgpt-session-server

Keywords

FAQs

Package last updated on 10 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc