1. Adjusted gitignore path
2. Formatted files
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
BadgeX,
|
||||
Ban,
|
||||
ShieldPlus,
|
||||
VenetianMask,
|
||||
} from 'lucide-react';
|
||||
import { BadgeX, Ban, ShieldPlus, VenetianMask } from 'lucide-react';
|
||||
|
||||
import { Tables } from '@kit/supabase/database';
|
||||
import { getSupabaseServerAdminClient } from '@kit/supabase/server-admin-client';
|
||||
@@ -258,9 +253,9 @@ async function SubscriptionsTable(props: { accountId: string }) {
|
||||
<If
|
||||
condition={subscription}
|
||||
fallback={
|
||||
<span className={'text-sm text-muted-foreground'}>
|
||||
This account does not currently have a subscription.
|
||||
</span>
|
||||
<span className={'text-muted-foreground text-sm'}>
|
||||
This account does not currently have a subscription.
|
||||
</span>
|
||||
}
|
||||
>
|
||||
{(subscription) => {
|
||||
|
||||
@@ -14,7 +14,12 @@ const SendOtpEmailSchema = z.object({
|
||||
// Purpose of the OTP (e.g., 'email-verification', 'password-reset')
|
||||
purpose: z.string().min(1).max(1000),
|
||||
// how long the OTP should be valid for. Defaults to 1 hour. Max is 7 days. Min is 30 seconds.
|
||||
expiresInSeconds: z.number().min(30).max(86400 * 7).default(3600).optional(),
|
||||
expiresInSeconds: z
|
||||
.number()
|
||||
.min(30)
|
||||
.max(86400 * 7)
|
||||
.default(3600)
|
||||
.optional(),
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -35,7 +40,9 @@ export const sendOtpEmailAction = enhanceAction(
|
||||
// this is highly unlikely to happen, but we want to make sure the client-side code is correct in
|
||||
// sending the correct user email
|
||||
if (data.email !== email) {
|
||||
throw new Error('User email does not match the email provided. This is likely an error in the client.');
|
||||
throw new Error(
|
||||
'User email does not match the email provided. This is likely an error in the client.',
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user