Skip to content

Commit

Permalink
Fix wrong default alg for totp (#300)
Browse files Browse the repository at this point in the history
Fix #299
  • Loading branch information
Corentin Mors authored Nov 22, 2024
1 parent 0e9b380 commit 671bfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/crypto/otpauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const parseOtpauth = (uri: string): Otpauth => {
type: url.hostname,
issuer: searchParams.get('issuer') ?? '',
secret: searchParams.get('secret') ?? '',
algorithm: matchAlgorithm(searchParams.get('algorithm') ?? 'sha1'),
algorithm: matchAlgorithm(searchParams.get('algorithm') ?? 'SHA1'),
digits: Number(searchParams.get('digits') ?? 0),
period: Number(searchParams.get('period') ?? 0),
counter: Number(searchParams.get('counter') ?? 0),
Expand Down

0 comments on commit 671bfc6

Please sign in to comment.