Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-zeit-token

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-zeit-token

Node module to programmatically obtain ZEIT tokens

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

create-zeit-token

This is a Node module to obtain a new ZEIT token for a supplied account. The implementation is based on puppeteer and EventEmitter

Usage

npm install create-zeit-token

Then use it like this example:

const T = new CreateZeitToken("example@gmail.com");

T.getSecurityCode().then(async code => {
  console.log(code); // Security code is usually in the form of Adjective-Animal
});

T.on("token", token => {
  console.log(`token is ${token}`);
});

API

class: CreateZeitToken

const z = new CreateZeitToken("example@gmail.com");

z.getSecurityCode().then(async code => {
  console.log(code); // Security code is usually in the form of Adjective-Animal
});

z.on("token", token => {
  console.log(`token is ${token}`);
});

z.getSecurityCode(opts)

  • opts <Object> a puppeteer options object
  • returns <Promise<String>>

z.resetSession()

  • returns <Promise>

Creates a new browser session which will create new Security Code

event: 'token'

  • <String> Bearer Token

Emitted when Puppeteer first detects a valid Authorization header.

Roadmap

  • Allows named token instead of Chrome (Browser) coming from Puppeteer
  • Use direct API if possible?
  • API documentation

License

MIT.

FAQs

Package last updated on 05 Mar 2018

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc