# @squeep/totp
-Simple helpers for dealing with One-Time Passwords.
+Simple helper classes for dealing with One-Time Passwords of varying flavor.
## API
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({
});
const token = totp.generate(); // The current token for the key.
+
+const isValid = totp.validate('123456');
```