mirror of
https://github.com/chenasraf/express-otp.git
synced 2026-05-18 01:49:07 +00:00
fix: remove unnecessary line
This commit is contained in:
@@ -276,7 +276,6 @@ function _verifyToken<U>(
|
||||
secret: string,
|
||||
reqToken: string,
|
||||
) {
|
||||
options = { ...options, timestamp: options.timestamp ?? Date.now() }
|
||||
const genToken = _totp(secret, options)
|
||||
return genToken === reqToken
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user