Guest User

Untitled

a guest
Nov 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. chrome.cookies.get({url:'https://accounts.google.com', name:'LSID'}, function(cookie) {
  2. if (cookie) {
  3. console.log('Sign-in cookie:', cookie);
  4. }
  5. });
  6.  
  7. chrome.identity.getAuthToken({interactive: false}, function (token) {
  8. if (!token) {
  9. if (chrome.runtime.lastError.message.match(/not signed in/)) {
  10. console.log("not singed in");
  11. } else {
  12. console.log("singed in");
  13. }
  14. }
  15. });
Add Comment
Please, Sign In to add comment