Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chrome.cookies.get({url:'https://accounts.google.com', name:'LSID'}, function(cookie) {
- if (cookie) {
- console.log('Sign-in cookie:', cookie);
- }
- });
- chrome.identity.getAuthToken({interactive: false}, function (token) {
- if (!token) {
- if (chrome.runtime.lastError.message.match(/not signed in/)) {
- console.log("not singed in");
- } else {
- console.log("singed in");
- }
- }
- });
Add Comment
Please, Sign In to add comment