cURL
curl --request GET \ --url https://api.bctrl.ai/v1/vault/{key}/totp \ --header 'Authorization: Bearer <token>'
{ "code": "<string>" }
Generate the current TOTP code for a credential
const code = await vault.totp('github'); console.log(code); // '482916'
"482916"