tdr-autosync / mi-fork-verdaccio_github_token

Verdaccio authentication plugin via Github personal access tokens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

verdaccio-github-token

  • This is an extension of verdaccio-github-token which needs organisation membership to be public.
  • The extended package does not need your organisation membership to be public and works with private membership for unhaggle.
  • Uses Github personal access tokens as password for authentication.

Install

npm install verdaccio verdaccio-github-token@2.0.0 --registry https://npm.motoinsight.com

Usage

Use your personal access token as password and github username as login.

Config

auth:
  github-token:
    org: unhaggle
  • org: string, required

People within this org will be able to auth (public/private membership, both work)

  • ttl: number, default=60e3

Cache time in ms. See lru-cache#maxAge.

  • max: number, default=Infinity

See lru-cache#max.

  • httpTimeout: number, default=10e3

See got#timeout.

  • httpRetries: number, default=2

See got#retries.

Publish package

npm install
npm build
npm login --registry=https://npm.motoinsight.com
npm publish --registry=https://npm.motoinsight.com .

License

MIT, 2018 (c) Dmitriy Tsvettsikh

About

Verdaccio authentication plugin via Github personal access tokens.

License:MIT License


Languages

Language:JavaScript 100.0%