Discover Packages
github.com/CarlSinclair/csuit-libs
twofa
package
Version:
v1.2.2
Opens a new window with list of versions in this module.
Published: Nov 5, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package twofa generates and verifies TOTP secrets for the CSuit apps.
NewSecret returns a fresh base32 TOTP secret for the account.
QRDataURL renders the setup QR code for an existing base32 secret as a
data:image/png URL. The secret is base32-decoded first so the code encodes
the same secret that Verify checks against.
Verify checks a code against a plaintext base32 secret.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.