mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-05-24 00:00:05 +08:00
fix: export not default class
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@
|
||||
|
||||
import OTP from './otp';
|
||||
|
||||
export default class HOTP extends OTP {
|
||||
export class HOTP extends OTP {
|
||||
/**
|
||||
* Generate the OTP with the given count
|
||||
*
|
||||
@@ -22,7 +22,7 @@ export default class HOTP extends OTP {
|
||||
* ```
|
||||
*/
|
||||
at(count) {
|
||||
console.log("HOTP.at");
|
||||
return "HOTP.at";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,6 +47,6 @@ export default class HOTP extends OTP {
|
||||
* ```
|
||||
*/
|
||||
verify(otp, counter) {
|
||||
console.log("HOTP.verify");
|
||||
return "HOTP.verify";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user