fix: export not default class

This commit is contained in:
lancegin
2017-06-29 14:39:24 +08:00
parent 5a82eb6db6
commit 5544c86620
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -5,7 +5,7 @@
import OTP from './otp';
export default class TOTP extends OTP {
export class TOTP extends OTP {
/*
* @param {secret}
* @type {String}
@@ -35,7 +35,7 @@ export default class TOTP extends OTP {
* ```
*/
now() {
console.log("TOTP.now");
return "TOTP.now";
}
/*
@@ -62,6 +62,6 @@ export default class TOTP extends OTP {
* ```
*/
verify(otp, time=null) {
console.log("TOTP.verify");
return "TOTP.verify";
}
}