Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including verdaccio-github-auth with all npm packages installed. Try it out:

var verdaccioGithubAuth = require("verdaccio-github-auth")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

verdaccio-github-auth v1.0.2

Verdaccio Github Authentication Plugin


Travis Build Status

This is a simple Github Authentication plugin for verdaccio.


     org: cthos # OPTIONAL: Filter the user's teams to this organization
     mode: token # token or basic. Token expects an auth token as the password. Basic is raw username/password for github. DEFAULT: token
     cachettl: 5 # OPTIONAL: How long to cache the user's teams in minutes. DEFAULT: 5
     orgmode: true # OPTIONAL: allow orgs to be placed in the `access` stanza.

    # Access is determined by team permissions, but github username is also valid.
      access: team1 team2 awesomteam cthos

      access: org:volcano # allows access to everyone in the volcano org


  • You cannot use basic with 2FA as far as I'm aware - you'd need to use the token type.
  • The personal access token needs read:org and read:user.

Current Limitations

  • Teams are cached in Memory, so a lot of users could result in high memory usage and I've not profiled the impact.
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free