Skip to content

Instantly share code, notes, and snippets.

@lkdocs
Last active August 29, 2015 14:18
Show Gist options
  • Save lkdocs/8a87b6a9f5180236c6c6 to your computer and use it in GitHub Desktop.
Save lkdocs/8a87b6a9f5180236c6c6 to your computer and use it in GitHub Desktop.
LaunchKey Node.js SDK - Check Status
var error = function (error) {
console.log("Error encountered: [" + error.code + "] " + error.message);
},
poll = function (authRequest) {
launchKey.checkStatus(
authRequest,
function (authRequest) {
console.log("User accepted launch request " + authRequest.getId());
},
function (authRequest) {
console.log("User denied launch request " + authRequest.getId());
},
poll,
error
);
};
launchKey.authenticate("LaunchKey Username", poll, error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment