Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit da9f3ee

Browse files
author
Eric Koleda
committed
Release version 15.
1 parent 24aa38f commit da9f3ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/OAuth1.gs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,15 @@ Service_.prototype.fetchInternal_ = function(url, params, opt_token,
571571
* @private
572572
*/
573573
Service_.prototype.parseToken_ = function(content) {
574-
var fields = content.split('&').reduce(function(result, pair) {
574+
var token = content.split('&').reduce(function(result, pair) {
575575
var parts = pair.split('=');
576576
result[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);
577577
return result;
578578
}, {});
579-
return {
580-
public: fields.oauth_token,
581-
secret: fields.oauth_token_secret
582-
};
579+
// Set fields that the signing library expects.
580+
token.public = token.oauth_token;
581+
token.secret = token.oauth_token_secret;
582+
return token;
583583
};
584584

585585
/**

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-oauth1",
3-
"version": "1.14.0",
3+
"version": "1.15.0",
44
"description": "OAuth1 for Apps Script is a library for Google Apps Script that provides the ability to create and authorize OAuth1 tokens. ",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)