Skip to content

Commit e0fe8b4

Browse files
author
Eric Koleda
committed
1.34.0
1 parent a333277 commit e0fe8b4

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

dist/OAuth2.gs

+2-2
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ Service_.prototype.fetchToken_ = function(payload, optUrl) {
575575
headers = extend_(headers, this.tokenHeaders_);
576576
}
577577
if (this.tokenPayloadHandler_) {
578-
tokenPayload = this.tokenPayloadHandler_(payload);
578+
payload = this.tokenPayloadHandler_(payload);
579579
}
580580
var response = UrlFetchApp.fetch(url, {
581581
method: 'post',
@@ -715,7 +715,7 @@ Service_.prototype.getToken = function(optSkipMemoryCheck) {
715715
* @private
716716
*/
717717
Service_.prototype.isExpired_ = function(token) {
718-
var expiresIn = token.expires_in || token.expires;
718+
var expiresIn = token.expires_in_sec || token.expires_in || token.expires;
719719
if (!expiresIn) {
720720
return false;
721721
} else {

docs/Service_.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4975,7 +4975,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Service_.
49754975
<br class="clear">
49764976

49774977
<footer>
4978-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Apr 15 2019 13:06:16 GMT-0400 (EDT)
4978+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Sep 04 2019 15:46:04 GMT-0400 (EDT)
49794979
</footer>
49804980

49814981
<script> prettyPrint(); </script>

docs/Storage_.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Service_.
763763
<br class="clear">
764764

765765
<footer>
766-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Apr 15 2019 13:06:16 GMT-0400 (EDT)
766+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Sep 04 2019 15:46:04 GMT-0400 (EDT)
767767
</footer>
768768

769769
<script> prettyPrint(); </script>

docs/global.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Service_.
13611361
<br class="clear">
13621362

13631363
<footer>
1364-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Apr 15 2019 13:06:16 GMT-0400 (EDT)
1364+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Sep 04 2019 15:46:04 GMT-0400 (EDT)
13651365
</footer>
13661366

13671367
<script> prettyPrint(); </script>

docs/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ <h2>Compatibility</h2><p>This library was designed to work with any OAuth2 provi
308308
differences in how they implement the standard it may be that some APIs
309309
aren't compatible. If you find an API that it doesn't work with, open an issue
310310
or fix the problem yourself and make a pull request against the source code.</p>
311+
<p>This library is designed for server-side OAuth flows, and client-side flows with
312+
implicit grants (<code>response_type=token</code>) are not supported.</p>
311313
<h2>Breaking changes</h2><ul>
312314
<li>Version 20 - Switched from using project keys to script IDs throughout the
313315
library. When upgrading from an older version, ensure the callback URL
@@ -689,7 +691,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Service_.
689691
<br class="clear">
690692

691693
<footer>
692-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Apr 15 2019 13:06:16 GMT-0400 (EDT)
694+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Sep 04 2019 15:46:04 GMT-0400 (EDT)
693695
</footer>
694696

695697
<script> prettyPrint(); </script>

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apps-script-oauth2",
3-
"version": "1.33.0",
3+
"version": "1.34.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)