Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "permissions": [
- "identity",
- "https://docs.google.com/spreadsheets/"
- ],
- "oauth2": {
- "client_id": "<enter-oauth2-client-id-here>",
- "scopes": [
- "https://docs.google.com/spreadsheets"
- ]
- }
- }
- console.log("here"); // this point is hit
- var ci = chrome.identity;
- ci.getAuthToken({ interactive: true }, function(token) {
- console.log("token: " + token); // none of this is hit
- if (chrome.runtime.lastError) {
- console.log(chrome.runtime.lastError);
- return;
- }
- access_token = token;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement