forked from github/jsotp
upd: export all modules
This commit is contained in:
parent
b4fa527e4c
commit
38dd85dabf
@ -4,7 +4,7 @@
|
||||
* @author : Gin (gin.lance.inside@hotmail.com)
|
||||
*/
|
||||
|
||||
class Base32 {
|
||||
export default class Base32 {
|
||||
static decode() {
|
||||
console.log("static Base32.decode");
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import OTP from './otp';
|
||||
|
||||
class HOTP extends OTP {
|
||||
export default class HOTP extends OTP {
|
||||
/**
|
||||
* Generate the OTP with the given count
|
||||
*
|
||||
|
16
src/jsotp.js
16
src/jsotp.js
@ -5,8 +5,16 @@
|
||||
* @Disc : a node module to generate and verify one-time passwords
|
||||
*/
|
||||
|
||||
function jsotp(name) {
|
||||
console.log(`Hello ${name}`);
|
||||
}
|
||||
import OTP from './otp';
|
||||
import TOTP from './totp';
|
||||
import HOTP from './hotp';
|
||||
import Base32 from './base32';
|
||||
import Util from './util';
|
||||
|
||||
exports.jsotp = jsotp
|
||||
export {
|
||||
OTP,
|
||||
TOTP,
|
||||
HOTP,
|
||||
Base32,
|
||||
Util
|
||||
};
|
@ -5,7 +5,7 @@
|
||||
|
||||
import OTP from './otp';
|
||||
|
||||
class TOTP extends OTP {
|
||||
export default class TOTP extends OTP {
|
||||
/**
|
||||
* @param {secret}
|
||||
* @type {String}
|
||||
|
@ -3,6 +3,6 @@
|
||||
* @author : Gin (gin.lance.inside@hotmail.com)
|
||||
*/
|
||||
|
||||
class Util {
|
||||
export default class Util {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user