-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
new option to encodeJWT required - url
because of using encodeJWT and requesting different url (such as https://www.googleapis.com/oauth2/v4/token) result in invalid grant error
diff --git a/lib/auth.js b/lib/auth.js
index 66bdc9d..52ea09a 100644
--- a/lib/auth.js
+++ b/lib/auth.js
@@ -92,7 +92,7 @@ exports.encodeJWT = function (options, callback) {
claims = {
iss: options.email,
scope: options.scopes.join(' '),
- aud: GOOGLE_OAUTH2_URL,
+ aud: options.url || GOOGLE_OAUTH2_URL,
exp: exp,
iat: iat
};
Metadata
Metadata
Assignees
Labels
No labels