Skip to content

Commit 9ac84c0

Browse files
author
Eric Koleda
committed
Release version 21.
1 parent e1070b8 commit 9ac84c0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dist/OAuth2.gs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,14 @@ Service_.prototype.getRedirectUri = function() {
467467
Service_.prototype.getTokenFromResponse_ = function(response) {
468468
var token = this.parseToken_(response.getContentText());
469469
if (response.getResponseCode() != 200 || token.error) {
470-
var reason = [token.error, token.message, token.error_description, token.error_uri].filter(Boolean).join(', ');
470+
var reason = [
471+
token.error,
472+
token.message,
473+
token.error_description,
474+
token.error_uri
475+
].filter(Boolean).map(function(part) {
476+
return typeof(part) == 'string' ? part : JSON.stringify(part);
477+
}).join(', ');
471478
if (!reason) {
472479
reason = response.getResponseCode() + ': ' + JSON.stringify(token);
473480
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apps-script-oauth2",
3-
"version": "1.20.0",
3+
"version": "1.21.0",
44
"description": "OAuth2 for Apps Script is a library for Google Apps Script that provides the ability to create and authorize OAuth2 tokens as well as refresh them when they expire.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)