mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat: Create TOTP node (#5901)
* ✨ Create TOTP node * ♻️ Apply feedback * ♻️ Recreate `pnpm-lock.yaml` * ♻️ Apply Giulio's feedback * 🚧 WIP node tests * ✅ Finish node test setup * ⏪ Restore test command * ⚡ linter fixes, tweaks * ♻️ Address Michael's feedback --------- Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
33
packages/nodes-base/credentials/TotpApi.credentials.ts
Normal file
33
packages/nodes-base/credentials/TotpApi.credentials.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class TotpApi implements ICredentialType {
|
||||
name = 'totpApi';
|
||||
|
||||
displayName = 'TOTP API';
|
||||
|
||||
documentationUrl = 'totp';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Secret',
|
||||
name: 'secret',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
placeholder: 'e.g. BVDRSBXQB2ZEL5HE',
|
||||
required: true,
|
||||
description:
|
||||
'Secret key encoded in the QR code during setup. <a href="https://github.com/google/google-authenticator/wiki/Key-Uri-Format#secret">Learn more</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Label',
|
||||
name: 'label',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
placeholder: 'e.g. GitHub:john-doe',
|
||||
description:
|
||||
'Identifier for the TOTP account, in the <code>issuer:username</code> format. <a href="https://github.com/google/google-authenticator/wiki/Key-Uri-Format#label">Learn more</a>.',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user