Skip to content

Instantly share code, notes, and snippets.

@lkdocs
Created March 30, 2015 23:41
Show Gist options
  • Save lkdocs/6da726f97fabb178040f to your computer and use it in GitHub Desktop.
Save lkdocs/6da726f97fabb178040f to your computer and use it in GitHub Desktop.
LaunchKey Node.js SDK - Is Authorized
var AuthRequest = require("launchkey-sdk").AuthRequest,
authRequest = new AuthRequest("auth request ID")
error = function (error) {
console.error("Error encountered: [" + error.code + "] " + error.message);
};
launchKey.isAuthorized(
authRequest,
function () {
console.log("Request is still authorized");
},
function () {
console.log("Request is no longer authorized");
},
error
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment