We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4112c3d commit afc5fc6Copy full SHA for afc5fc6
src/OAuth2.js
@@ -64,8 +64,8 @@ function createService(serviceName) {
64
* @return {string} The redirect URI.
65
*/
66
function getRedirectUri(scriptId) {
67
- return Utilities.formatString(
68
- 'https://script.google.com/macros/d/%s/usercallback', scriptId);
+ return 'https://script.google.com/macros/d/' + encodeURIComponent(scriptId) +
+ '/usercallback';
69
}
70
71
if (typeof module === 'object') {
0 commit comments