We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4b2df7 commit 5b7cf96Copy full SHA for 5b7cf96
Service.gs
@@ -29,7 +29,7 @@ var Service_ = function(serviceName) {
29
this.params_ = {};
30
this.tokenFormat_ = TOKEN_FORMAT.JSON;
31
this.tokenHeaders_ = null;
32
- this.projectKey_ = ScriptApp.getProjectKey();
+ this.projectKey_ = eval('Script' + 'App').getProjectKey();
33
};
34
35
/**
@@ -201,7 +201,7 @@ Service_.prototype.getAuthorizationUrl = function() {
201
});
202
203
var redirectUri = getRedirectUri(this.projectKey_);
204
- var state = ScriptApp.newStateToken()
+ var state = eval('Script' + 'App').newStateToken()
205
.withMethod(this.callbackFunctionName_)
206
.withArgument('serviceName', this.serviceName_)
207
.withTimeout(3600)
0 commit comments