Skip to content

Commit 66c53f0

Browse files
committed
fix: more nits
1 parent b55d49e commit 66c53f0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/start/src/routes/_app.$organizationId.account._tabs.two-factor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function DisabledView({ hasEmailProvider }: { hasEmailProvider: boolean }) {
5252
<span>Two-factor authentication is not available.</span>
5353
</div>
5454
<p className="text-muted-foreground leading-normal">
55-
Your account signs in with Google or GitHub, which already provide
56-
two-factor authentication on their side. Enable it in your provider's
55+
Your account signs in with Google or GitHub, which handle two-factor
56+
authentication in their account settings. Enable it in your provider's
5757
security settings.
5858
</p>
5959
</div>

packages/trpc/src/routers/auth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
Arctic,
33
buildOtpauthUrl,
4-
consumeRecoveryCode,
54
COOKIE_OPTIONS,
5+
consumeRecoveryCode,
66
createSession,
77
deleteSessionTokenCookie,
88
generateQrDataUrl,
@@ -248,7 +248,7 @@ export const authRouter = createTRPCRouter({
248248
id: challengeId,
249249
userId: user.id,
250250
expiresAt: new Date(
251-
Date.now() + TWO_FACTOR_CHALLENGE_TTL_SECONDS * 1000,
251+
Date.now() + TWO_FACTOR_CHALLENGE_TTL_SECONDS * 1000
252252
),
253253
},
254254
});
@@ -361,13 +361,13 @@ export const authRouter = createTRPCRouter({
361361
});
362362
if (!emailAccount) {
363363
throw TRPCAccessError(
364-
'Two-factor authentication is only available for email/password sign-ins. Your account uses a social provider, which handles 2FA on its end.',
364+
'Two-factor authentication is only available for email/password sign-ins. Your account uses a social provider, which handles 2FA on its end.'
365365
);
366366
}
367367
const existing = await db.userTotp.findUnique({ where: { userId } });
368368
if (existing?.enabledAt) {
369369
throw TRPCAccessError(
370-
'Two-factor is already enabled. Disable it first to re-configure.',
370+
'Two-factor is already enabled. Disable it first to re-configure.'
371371
);
372372
}
373373

0 commit comments

Comments
 (0)