fix: provided hashType into getOTP
This commit is contained in:
@@ -58,6 +58,6 @@ export function getTOTP(
|
||||
timeOffset = 0,
|
||||
hashType = "SHA-1",
|
||||
) {
|
||||
const unixTime = Math.round((time / 1000 + timeOffset) / fetchTime);
|
||||
return getHOTP(BigInt(unixTime), secret, digits);
|
||||
const unixTime = Math.round((time / 1000n + timeOffset) / fetchTime);
|
||||
return getHOTP(BigInt(unixTime), secret, digits, hashType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user