mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-05-05 00:00:03 +08:00
fix: subclass constructor params
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ import OTP from './otp';
|
||||
*
|
||||
* @return {OTP}
|
||||
*/
|
||||
constructor(interval=30, ...args) {
|
||||
super(...args);
|
||||
constructor(secret, interval=30) {
|
||||
super(secret);
|
||||
this.interval = interval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user