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

Commit 4a16e28

Browse files
authored
Check for token !== null
If the Property Store returns a null token, this will throw an exception.
1 parent 7067b77 commit 4a16e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Service_.prototype.handleCallback = function(callbackRequest) {
256256
var verifier = callbackRequest.parameter.oauth_verifier;
257257
var token = this.getToken_();
258258

259-
if (requestToken && requestToken != token.public) {
259+
if (!token || (requestToken && requestToken != token.public)) {
260260
throw 'Error handling callback: token mismatch';
261261
}
262262

0 commit comments

Comments
 (0)