Skip to content

Instantly share code, notes, and snippets.

@tommynyquist
Created October 4, 2013 22:19
Show Gist options
  • Save tommynyquist/6833785 to your computer and use it in GitHub Desktop.
Save tommynyquist/6833785 to your computer and use it in GitHub Desktop.
chrome identity logged in check
function isLoggedIn(successCallback, failureCallback) {
chrome.identity.getAuthToken(function() {
if (chrome.runtime.lastError)
failureCallback();
else
successCallback();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment