Skip to content

Commit fd22137

Browse files
committed
Update @epic-web/totp to v3.0.0 and simplify TOTP URI generation
1 parent 830487d commit fd22137

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

app/routes/settings+/profile.two-factor.verify.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ export async function loader({ request }: Route.LoaderArgs) {
5959
const issuer = new URL(getDomainUrl(request)).host
6060
const otpUri = getTOTPAuthUri({
6161
...verification,
62-
// OTP clients break with the `-` in the algorithm name.
63-
algorithm: verification.algorithm.replaceAll('-', ''),
6462
accountName: user.email,
6563
issuer,
6664
})

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@epic-web/client-hints": "^1.3.5",
5151
"@epic-web/invariant": "^1.0.0",
5252
"@epic-web/remember": "^1.1.0",
53-
"@epic-web/totp": "^2.1.1",
53+
"@epic-web/totp": "^3.0.0",
5454
"@mjackson/form-data-parser": "^0.7.0",
5555
"@nasa-gcn/remix-seo": "^2.0.1",
5656
"@oslojs/crypto": "^1.0.1",

0 commit comments

Comments
 (0)