Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. {
  2. "permissions": [
  3. "identity",
  4. "https://docs.google.com/spreadsheets/"
  5. ],
  6. "oauth2": {
  7. "client_id": "<enter-oauth2-client-id-here>",
  8. "scopes": [
  9. "https://docs.google.com/spreadsheets"
  10. ]
  11. }
  12. }
  13.  
  14. console.log("here"); // this point is hit
  15.  
  16. var ci = chrome.identity;
  17. ci.getAuthToken({ interactive: true }, function(token) {
  18. console.log("token: " + token); // none of this is hit
  19. if (chrome.runtime.lastError) {
  20. console.log(chrome.runtime.lastError);
  21. return;
  22. }
  23. access_token = token;
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement