mirror of
https://github.com/LanceGin/jsotp.git
synced 2024-10-06 06:22:08 +08:00
fix: subclass constructor params
This commit is contained in:
parent
4e7154cc3e
commit
990bea095c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user