const {
secret, // key encoded as base32
uri, // key and metadata encoded as an otpauth URI
- svg, // otpauthg URI encoded as QR code
+ svg, // otpauth URI encoded as QR code
} = TOTP.createKeySVG({ accountname: 'test@example.com', issuer: 'Squeep', }, key, 'hex');
const totp = new TOTP({