Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@apyd16

Description

@apyd16

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions