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

Commit 4f213f0

Browse files
author
Eric Koleda
authored
Merge pull request #40 from labnol/master
Check for token !== null
2 parents 7067b77 + 4a16e28 commit 4f213f0

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)