henrahmagix / github-oauth-prompt Goto Github PK
View Code? Open in Web Editor NEWEasy creation of GitHub OAuth tokens.
License: MIT License
Easy creation of GitHub OAuth tokens.
License: MIT License
If you get a token with public scope for your unique name, then try to get it again with private scope, the previous token will be fetched and no notification that the token does not allow private access. Only upon using the token will you find that you don't have access.
An error should not be thrown. Alert "existing token found for but scopes do not match."
Should the fetched token of incorrect scopes be returned, or should the task fail?
Woo! Promises!
callback
parameter is undefined
, use a promise and return it.Coming from popomore/github-labels#3.
I'm not getting an SMS with the example:
var oauth = require('github-oauth-prompt');
oauth({name: 'test-token'}, function(token) {
console.log(token);
});
So it seems that maybe github changed something, the method you're using to get back an existing token won't work because all tokens are empty strings. From a quick search it seems impossible now, maybe you should just throw an error ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.