Skip to content

Commit 671bfc6

Browse files
author
Corentin Mors
authored
Fix wrong default alg for totp (#300)
Fix #299
1 parent 0e9b380 commit 671bfc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/crypto/otpauth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const parseOtpauth = (uri: string): Otpauth => {
3939
type: url.hostname,
4040
issuer: searchParams.get('issuer') ?? '',
4141
secret: searchParams.get('secret') ?? '',
42-
algorithm: matchAlgorithm(searchParams.get('algorithm') ?? 'sha1'),
42+
algorithm: matchAlgorithm(searchParams.get('algorithm') ?? 'SHA1'),
4343
digits: Number(searchParams.get('digits') ?? 0),
4444
period: Number(searchParams.get('period') ?? 0),
4545
counter: Number(searchParams.get('counter') ?? 0),

0 commit comments

Comments
 (0)