mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Format all credentials (#3720)
* Apply Prettier to all credentials * Fix quotes for lint * 👕 Remove `quotemark` rule * 👕 Run Prettier to take over quotes * ⬆️ Upgrade `eslint-plugin-n8n-nodes-base` * 📦 Update `package-lock.json` Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class OAuth2Api implements ICredentialType {
|
||||
name = 'oAuth2Api';
|
||||
@@ -32,9 +28,7 @@ export class OAuth2Api implements ICredentialType {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
grantType: [
|
||||
'authorizationCode',
|
||||
],
|
||||
grantType: ['authorizationCode'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -76,13 +70,12 @@ export class OAuth2Api implements ICredentialType {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
grantType: [
|
||||
'authorizationCode',
|
||||
],
|
||||
grantType: ['authorizationCode'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'For some services additional query parameters have to be set which can be defined here',
|
||||
description:
|
||||
'For some services additional query parameters have to be set which can be defined here',
|
||||
placeholder: 'access_type=offline',
|
||||
},
|
||||
{
|
||||
@@ -91,9 +84,7 @@ export class OAuth2Api implements ICredentialType {
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
grantType: [
|
||||
'authorizationCode',
|
||||
],
|
||||
grantType: ['authorizationCode'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
|
||||
Reference in New Issue
Block a user