Build
Generate a TOTP code in Duaer
In Duaer, TOTP defaults to Operation Generate Secret. Under Options, Algorithm defaults to SHA1, Digits to 6, and Period to 30. You need a totpApi credential (label and secret).
Generate the current code
- Create a totpApi credential with Label and Secret.
- Search for TOTP, connect it after the previous node, and select that credential.
- Leave Operation on Generate Secret.
- Optionally change Algorithm, Digits, or Period under Options.
- Select Execute step. The current code appears in the output.
Keep the shared Secret in the credential. Do not put it in plain text on the canvas.
Related crypto nodes: Sign a token with JWT in Duaer and Hash a value with Crypto in Duaer.
Questions
Does Generate Secret in Duaer’s TOTP create a new key each run?
No. Despite the Operation name, it generates the current code from the secret stored in the credential.
In this section
Sign a token with JWT in Duaer
In Duaer, JWT defaults to Operation Sign. You need a jwtAuth credential. Use JSON to Build Payload is off by default.
NodesHash a value with Crypto in Duaer
In Duaer, Crypto defaults to Action Hash. Type defaults to SHA256. The result goes to Property Name (default data). Encoding defaults to HEX.
NodesCall an API with HTTP Request in Duaer
In Duaer, HTTP Request sends the method and URL you enter. Put the account in a credential, not in the node parameters.