[//]: # "File generated from a template. Do not edit this file directly." # cred-class-name-missing-oauth2-suffix Credential class name must mention `OAuth2` if the credential is OAuth2. 📋 This rule is part of the `plugin:n8n-nodes-base/credentials` config. ## Examples ❌ Example of **incorrect** code: ```js class MyTestApi implements ICredentialType { name = 'myTestOAuth2Api'; displayName = 'My Test OAuth2 API'; documentationUrl = 'myTest'; extends = [ 'oAuth2Api', ]; } ``` ✅ Example of **correct** code: ```js class MyTestOAuth2Api implements ICredentialType { name = 'myTestOAuth2Api'; displayName = 'My Test OAuth2 API'; documentationUrl = 'myTest'; extends = [ 'oAuth2Api', ]; } ``` ## Links - [Rule source](../../lib/rules/cred-class-name-missing-oauth2-suffix.ts) - [Test source](../../tests/cred-class-name-missing-oauth2-suffix.test.ts)