Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot generate authenticator token every 15secs instead of default 30secs #698

Open
apyd16 opened this issue Mar 15, 2023 · 0 comments
Open

Comments

@apyd16
Copy link

apyd16 commented Mar 15, 2023

I am not able to reduce the default time limit of 30secs to 15 secs to generate authenticator token, below is the code I am trying.

otplib.authenticator.options={
   epoch: Date.now(),
  step: 15,
  window: 0,
}
const code = otplib.authenticator.generate(secret);

please suggest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant