gh-valid
Check if a GitHub token is valid and has the right scopes
Install
npm install --save gh-valid
Usage
// A github token with notification and repo scopeconst token = processenvGITHUB_TOKEN // Check if the token is valid // Check if a token is valid and has required scopes // When token is invalid
License
MIT © Siddharth Doshi