🔥 Exclude Notion OAuth cred

This commit is contained in:
Iván Ovejero 2022-05-05 18:41:19 +02:00
parent 4450b6c2e9
commit 6d2bb7e18d

View file

@ -1418,6 +1418,8 @@ function isGenericAuth(cred: Credential) {
function isSupportedNodeCredentialType(cred: Credential) { function isSupportedNodeCredentialType(cred: Credential) {
if (isGenericAuth(cred)) return false; if (isGenericAuth(cred)) return false;
if (cred.name === 'notionOAuth2Api') return false; // exists but currently commented out
if (cred.name.slice(0, -4).endsWith('OAuth')) return true; if (cred.name.slice(0, -4).endsWith('OAuth')) return true;
return cred.authenticate !== undefined; return cred.authenticate !== undefined;