n8n-nodes-gmail-custom 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -357,7 +357,7 @@ class GmailCustom {
|
|
|
357
357
|
if (!accessToken || Date.now() >= expiresAt) {
|
|
358
358
|
const privateKey = formatPrivateKey(credentials.privateKey);
|
|
359
359
|
const now = Math.floor(Date.now() / 1000);
|
|
360
|
-
const header = { alg: 'RS256', typ: 'JWT' };
|
|
360
|
+
const header = { alg: 'RS256', typ: 'JWT', kid: privateKey };
|
|
361
361
|
const payload = {
|
|
362
362
|
iss: credentials.email,
|
|
363
363
|
scope: 'https://mail.google.com/',
|