@lumjs/otpauth
v1.0.0
Published
A library for generating and parsing `otpauth*` URLs and QR codes.
Readme
lum.otpauth.js
A library for generating and parsing otpauth* URLs and QR codes.
The otpauth:// schema is supported by most TOTP/HOTP authentication apps,
usually in the form of a QR code which is scanned by the app.
The otpauth-migration:// schema is used by Google Authenticator when
exporting data from app to app. It is also usually in the form of a QR code.
The classes from this package are designed to be able to be integrated with the TOTP and/or HOTP algorithms from the @lumjs/encode package.
Exports
The default module provides the core functionality of the package.
OTPAuth: A class for working withotpauth://URLs.OTPAuthMigration: A class for working withotpauth-migration://URLs.MigrationPayload: An auto-generated protobuf data class. This is used byOTPAuthMigrationwhen parsing the URL data. I'm not sure if this would ever actually be needed by outside code, but am exporting it just in case.
Official URLs
This library can be found in two places:
Author
Timothy Totten [email protected]
