Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(auth): add email OTP sign-in for production, dev-only sign-up

Generbc0d564e7d95
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1d4d49c24..0c7f4285b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -113,6 +113,9 @@ importers:
clsx:
specifier: ^2.1.1
version: 2.1.1
+ input-otp:
+ specifier: ^1.4.2
lucide-react:
specifier: ^1.7.0
version: 1.8.0([email protected])
@@ -3881,6 +3884,12 @@ packages:
resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==}
+ resolution: {integrity: sha512-l3jWwYNvrEa6NTCt7BECfCm48GvwuZzkoeG3gBL2w4CHeOXW3eKFmf9UNYkNfYc3mxMrthMnxjIE07MT0zLBQA==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
+
resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}
engines: {node: '>= 0.4'}
@@ -6706,7 +6715,7 @@ snapshots:
optionalDependencies:
'@types/react': 19.2.14
dependencies:
'@better-auth/utils': 0.4.0
'@better-fetch/fetch': 1.1.21
@@ -6721,36 +6730,36 @@ snapshots:
optionalDependencies:
'@cloudflare/workers-types': 4.20260410.1
dependencies:
'@better-auth/utils': 0.4.0
dependencies:
'@better-auth/utils': 0.4.0
optionalDependencies:
kysely: 0.28.15
dependencies:
'@better-auth/utils': 0.4.0
dependencies:
'@better-auth/utils': 0.4.0
dependencies:
'@better-auth/utils': 0.4.0
dependencies:
'@better-auth/utils': 0.4.0
'@better-fetch/fetch': 1.1.21
@@ -8574,13 +8583,13 @@ snapshots:
dependencies:
- '@better-auth/drizzle-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
- '@better-auth/memory-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
- '@better-auth/mongo-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
- '@better-auth/prisma-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
- '@better-auth/telemetry': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])
+ '@better-auth/drizzle-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
+ '@better-auth/memory-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
+ '@better-auth/mongo-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
+ '@better-auth/prisma-adapter': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])
+ '@better-auth/telemetry': 1.6.2(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@cloudflare/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])
'@better-auth/utils': 0.4.0
'@better-fetch/fetch': 1.1.21
'@noble/ciphers': 2.1.1
@@ -10005,6 +10014,11 @@ snapshots:
+ dependencies:
+ react: 19.1.5
+ react-dom: 19.1.5([email protected])
+
dependencies:
es-errors: 1.3.0
diff --git a/src/web/package.json b/src/web/package.json
index ee74b4eae..8bfbe81df 100644
--- a/src/web/package.json
+++ b/src/web/package.json
@@ -24,6 +24,7 @@
"better-auth": "^1.6.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
+ "input-otp": "^1.4.2",
"lucide-react": "^1.7.0",
"nanoid": "^5.1.7",
"next": "16.1.5",
diff --git a/src/web/public/placeholder.svg b/src/web/public/placeholder.svg
new file mode 100644
index 000000000..55ba01e1f
--- /dev/null
+++ b/src/web/public/placeholder.svg
@@ -0,0 +1,31 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" viewBox="0 0 800 800">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0%" stop-color="#f5f0eb"/>
+ <stop offset="100%" stop-color="#e8e0d8"/>
+ </linearGradient>
+ </defs>
+ <rect width="800" height="800" fill="url(#bg)"/>
+ <!-- Warm geometric composition -->
+ <circle cx="520" cy="280" r="180" fill="#d4cbc2" opacity="0.5"/>
+ <circle cx="360" cy="480" r="120" fill="#c4b8ac" opacity="0.4"/>
+ <rect x="160" y="200" width="140" height="140" rx="24" fill="#b8aa9c" opacity="0.35" transform="rotate(12 230 270)"/>
+ <rect x="480" y="460" width="100" height="100" rx="18" fill="#c8bdb0" opacity="0.4" transform="rotate(-8 530 510)"/>
+ <!-- Subtle grid dots -->
+ <g fill="#b0a496" opacity="0.2">
+ <circle cx="100" cy="100" r="3"/>
+ <circle cx="200" cy="100" r="3"/>
+ <circle cx="300" cy="100" r="3"/>
+ <circle cx="400" cy="100" r="3"/>
+ <circle cx="500" cy="100" r="3"/>
+ <circle cx="600" cy="100" r="3"/>
+ <circle cx="700" cy="100" r="3"/>
+ <circle cx="100" cy="700" r="3"/>
+ <circle cx="200" cy="700" r="3"/>
+ <circle cx="300" cy="700" r="3"/>
+ <circle cx="400" cy="700" r="3"/>
+ <circle cx="500" cy="700" r="3"/>
+ <circle cx="600" cy="700" r="3"/>
+ <circle cx="700" cy="700" r="3"/>
+ </g>
+</svg>
diff --git a/src/web/src/app/(auth)/sign-in/page.tsx b/src/web/src/app/(auth)/sign-in/page.tsx
index fee11a64b..fc368625c 100644
--- a/src/web/src/app/(auth)/sign-in/page.tsx
+++ b/src/web/src/app/(auth)/sign-in/page.tsx
@@ -1,10 +1,15 @@
"use client"
import { useState } from "react"
-import { signIn } from "@/lib/auth-client"
+import { signIn, authClient } from "@/lib/auth-client"
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
+import {
+ InputOTP,
+ InputOTPGroup,
+ InputOTPSlot,
+} from "@/components/ui/input-otp"
import {
Field,
FieldDescription,
@@ -15,7 +20,159 @@ import {
} from "@/components/ui/field"
import { SiGithub, SiGoogle } from "@icons-pack/react-simple-icons"
-export default function SignInPage() {
+const isProd = process.env.NEXTJS_ENV === "production"
+
+function OTPSignIn() {
+ const [email, setEmail] = useState("")
+ const [code, setCode] = useState("")
+ const [step, setStep] = useState<"email" | "code">("email")
+ const [error, setError] = useState("")
+ const [loading, setLoading] = useState(false)
+
+ async function handleSendCode(e: React.FormEvent) {
+ e.preventDefault()
+ setError("")
+ setLoading(true)
+ try {
+ const { error } = await authClient.emailOtp.sendVerificationOtp({
+ email,
+ type: "sign-in",
+ })
+ if (error) {
+ setError(error.message ?? "Failed to send code")
+ } else {
+ setStep("code")
+ }
+ } catch {
+ setError("Failed to send code")
+ }
+ setLoading(false)
+ }
+
+ async function handleVerifyCode(value: string) {
+ setCode(value)
+ if (value.length !== 6) return
+
+ setError("")
+ setLoading(true)
+ try {
+ const { error } = await authClient.emailOtp.verifyEmail({
+ email,
+ otp: value,
+ })
+ if (error) {
+ setError(error.message ?? "Invalid code")
+ setCode("")
+ } else {
+ window.location.href = "/home"
+ return
+ }
+ } catch {
+ setError("Invalid code")
+ setCode("")
+ }
+ setLoading(false)
+ }
+
+ return (
+ <FieldGroup>
+ <div className="flex flex-col items-center gap-2 text-center">
+ <h1 className="text-2xl font-bold">Welcome back</h1>
+ <p className="text-balance text-muted-foreground">
+ {step === "email"
+ ? "Sign in with your email"
+ : "Enter the verification code"}
+ </p>
+ </div>
+ {error && <FieldError>{error}</FieldError>}
+ {step === "email" ? (
+ <form onSubmit={handleSendCode}>
+ <FieldGroup>
+ <Field>
+ <FieldLabel htmlFor="email">Email</FieldLabel>
+ <Input
+ id="email"
+ type="email"
+ placeholder="[email protected]"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ required
+ autoFocus
+ />
+ </Field>
+ <Field>
+ <Button type="submit" disabled={loading} className="w-full">
+ {loading ? "Sending..." : "Send Code"}
+ </Button>
+ </Field>
+ </FieldGroup>
+ </form>
+ ) : (
+ <>
+ <p className="text-sm text-muted-foreground text-center">
+ We sent a code to <strong>{email}</strong>
+ </p>
+ <div className="flex justify-center">
+ <InputOTP
+ maxLength={6}
+ value={code}
+ onChange={handleVerifyCode}
+ disabled={loading}
+ autoFocus
+ >
+ <InputOTPGroup>
+ <InputOTPSlot index={0} />
+ <InputOTPSlot index={1} />
+ <InputOTPSlot index={2} />
+ <InputOTPSlot index={3} />
+ <InputOTPSlot index={4} />
+ <InputOTPSlot index={5} />
+ </InputOTPGroup>
+ </InputOTP>
+ </div>
+ <Button
+ variant="ghost"
+ className="w-full"
+ onClick={() => {
+ setStep("email")
+ setCode("")
+ setError("")
+ }}
+ >
+ Use a different email
+ </Button>
+ </>
+ )}
+ <FieldSeparator className="*:data-[slot=field-separator-content]:bg-card">
+ Or continue with
+ </FieldSeparator>
+ <Field className="grid grid-cols-2 gap-4">
+ <Button
+ variant="outline"
+ type="button"
+ onClick={() =>
+ signIn.social({ provider: "github", callbackURL: "/home" })
+ }
+ >
+ <SiGithub className="size-4" />
+ GitHub
+ </Button>
+ <Button
+ variant="outline"
+ type="button"
+ onClick={() =>
+ signIn.social({ provider: "google", callbackURL: "/home" })
+ }
+ >
+ <SiGoogle className="size-4" />
+ Google
+ </Button>
+ </Field>
+ </FieldGroup>
+ )
+}
+
+function PasswordSignIn() {
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")
const [error, setError] = useState("")
@@ -38,80 +195,86 @@ export default function SignInPage() {
setLoading(false)
}
+ return (
+ <form onSubmit={handleSubmit}>
+ <FieldGroup>
+ <div className="flex flex-col items-center gap-2 text-center">
+ <h1 className="text-2xl font-bold">Welcome back</h1>
+ <p className="text-balance text-muted-foreground">
+ Sign in to your Alook account
+ </p>
+ </div>
+ {error && <FieldError>{error}</FieldError>}
+ <Field>
+ <FieldLabel htmlFor="email">Email</FieldLabel>
+ <Input
+ id="email"
+ type="email"
+ placeholder="[email protected]"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ required
+ />
+ </Field>
+ <Field>
+ <FieldLabel htmlFor="password">Password</FieldLabel>
+ <Input
+ id="password"
+ type="password"
+ value={password}
+ onChange={(e) => setPassword(e.target.value)}
+ required
+ />
+ </Field>
+ <Field>
+ <Button type="submit" disabled={loading} className="w-full">
+ {loading ? "Signing in..." : "Sign in"}
+ </Button>
+ </Field>
+ <FieldSeparator className="*:data-[slot=field-separator-content]:bg-card">
+ Or continue with
+ </FieldSeparator>
+ <Field className="grid grid-cols-2 gap-4">
+ <Button
+ variant="outline"
+ type="button"
+ onClick={() =>
+ signIn.social({ provider: "github", callbackURL: "/home" })
+ }
+ >
+ <SiGithub className="size-4" />
+ GitHub
+ </Button>
+ <Button
+ variant="outline"
+ type="button"
+ onClick={() =>
+ signIn.social({ provider: "google", callbackURL: "/home" })
+ }
+ >
+ <SiGoogle className="size-4" />
+ Google
+ </Button>
+ </Field>
+ <FieldDescription className="text-center">
+ Don&apos;t have an account?{" "}
+ <a href="/sign-up">Sign up</a>
+ </FieldDescription>
+ </FieldGroup>
+ </form>
+ )
+}
+
+export default function SignInPage() {
return (
<div className="flex min-h-svh flex-col items-center justify-center bg-muted p-6 md:p-10">
<div className="w-full max-w-sm md:max-w-4xl">
<div className="flex flex-col gap-6">
<Card className="overflow-hidden p-0">
<CardContent className="grid p-0 md:grid-cols-2">
- <form className="p-6 md:p-8" onSubmit={handleSubmit}>
- <FieldGroup>
- <div className="flex flex-col items-center gap-2 text-center">
- <h1 className="text-2xl font-bold">Welcome back</h1>
- <p className="text-balance text-muted-foreground">
- Sign in to your Alook account
- </p>
- </div>
- {error && (
- <FieldError>{error}</FieldError>
- )}
- <Field>
- <FieldLabel htmlFor="email">Email</FieldLabel>
- <Input
- id="email"
- type="email"
- placeholder="[email protected]"
- value={email}
- onChange={(e) => setEmail(e.target.value)}
- required
- />
- </Field>
- <Field>
- <FieldLabel htmlFor="password">Password</FieldLabel>
- <Input
- id="password"
- type="password"
- value={password}
- onChange={(e) => setPassword(e.target.value)}
- required
- />
- </Field>
- <Field>
- <Button type="submit" disabled={loading} className="w-full">
- {loading ? "Signing in..." : "Sign in"}
- </Button>
- </Field>
- <FieldSeparator className="*:data-[slot=field-separator-content]:bg-card">
- Or continue with
- </FieldSeparator>
- <Field className="grid grid-cols-2 gap-4">
- <Button
- variant="outline"
- type="button"
- onClick={() =>
- signIn.social({ provider: "github", callbackURL: "/home" })
- }
- >
- <SiGithub className="size-4" />
- GitHub
- </Button>
- <Button
- variant="outline"
- type="button"
- onClick={() =>
- signIn.social({ provider: "google", callbackURL: "/home" })
- }
- >
- <SiGoogle className="size-4" />
- Google
- </Button>
- </Field>
- <FieldDescription className="text-center">
- Don&apos;t have an account?{" "}
- <a href="/sign-up">Sign up</a>
- </FieldDescription>
- </FieldGroup>
- </form>
+ <div className="p-6 md:p-8">
+ {isProd ? <OTPSignIn /> : <PasswordSignIn />}
+ </div>
<div className="relative hidden bg-muted md:block">
<img
src="/placeholder.svg"
diff --git a/src/web/src/app/(auth)/sign-up/page.tsx b/src/web/src/app/(auth)/sign-up/page.tsx
index aa9a581f8..24ba25b12 100644
--- a/src/web/src/app/(auth)/sign-up/page.tsx
+++ b/src/web/src/app/(auth)/sign-up/page.tsx
@@ -1,6 +1,7 @@
"use client"
import { useState } from "react"
+import { redirect } from "next/navigation"
import { signUp } from "@/lib/auth-client"
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"
@@ -13,8 +14,9 @@ import {
FieldLabel,
} from "@/components/ui/field"
-export default function SignUpPage() {
- const [name, setName] = useState("")
+const isProd = process.env.NEXTJS_ENV === "production"
+
+function SignUpForm() {
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")
const [error, setError] = useState("")
@@ -25,7 +27,7 @@ export default function SignUpPage() {
setError("")
setLoading(true)
const { error } = await signUp.email(
- { name, email, password },
+ { name: "", email, password },
{ onError: (ctx) => setError(ctx.error.message) },
)
if (error) {
@@ -54,16 +56,6 @@ export default function SignUpPage() {
{error && (
<FieldError>{error}</FieldError>
)}
- <Field>
- <FieldLabel htmlFor="name">Name</FieldLabel>
- <Input
- id="name"
- placeholder="Your name"
- value={name}
- onChange={(e) => setName(e.target.value)}
- required
- />
- </Field>
<Field>
<FieldLabel htmlFor="email">Email</FieldLabel>
<Input
@@ -112,3 +104,8 @@ export default function SignUpPage() {
</div>
)
}
+
+export default function SignUpPage() {
+ if (isProd) redirect("/sign-in")
+ return <SignUpForm />
+}
diff --git a/src/web/src/components/ui/input-otp.tsx b/src/web/src/components/ui/input-otp.tsx
new file mode 100644
index 000000000..3a26e0214
--- /dev/null
+++ b/src/web/src/components/ui/input-otp.tsx
@@ -0,0 +1,86 @@
+"use client"
+
+import * as React from "react"
+import { OTPInput, OTPInputContext } from "input-otp"
+
+import { cn } from "@/lib/utils"
+import { MinusIcon } from "lucide-react"
+
+function InputOTP({
+ className,
+ containerClassName,
+ ...props
+}: React.ComponentProps<typeof OTPInput> & {
+ containerClassName?: string
+}) {
+ return (
+ <OTPInput
+ data-slot="input-otp"
+ containerClassName={cn(
+ "cn-input-otp flex items-center has-disabled:opacity-50",
+ containerClassName
+ )}
+ spellCheck={false}
+ className={cn("disabled:cursor-not-allowed", className)}
+ {...props}
+ />
+ )
+}
+
+function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="input-otp-group"
+ className={cn(
+ "flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function InputOTPSlot({
+ index,
+ className,
+ ...props
+}: React.ComponentProps<"div"> & {
+ index: number
+}) {
+ const inputOTPContext = React.useContext(OTPInputContext)
+ const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {}
+
+ return (
+ <div
+ data-slot="input-otp-slot"
+ data-active={isActive}
+ className={cn(
+ "relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
+ className
+ )}
+ {...props}
+ >
+ {char}
+ {hasFakeCaret && (
+ <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
+ <div className="h-4 w-px animate-caret-blink bg-foreground duration-1000" />
+ </div>
+ )}
+ </div>
+ )
+}
+
+function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="input-otp-separator"
+ className="flex items-center [&_svg:not([class*='size-'])]:size-4"
+ role="separator"
+ {...props}
+ >
+ <MinusIcon />
+ </div>
+ )
+}
+
+export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }
diff --git a/src/web/src/lib/auth-client.ts b/src/web/src/lib/auth-client.ts
index e6e04c440..5b3f64dcc 100644
--- a/src/web/src/lib/auth-client.ts
+++ b/src/web/src/lib/auth-client.ts
@@ -1,8 +1,12 @@
"use client"
import { createAuthClient } from "better-auth/react"
+import { emailOTPClient } from "better-auth/client/plugins"
+
+const isProd = process.env.NEXTJS_ENV === "production"
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000",
+ plugins: isProd ? [emailOTPClient()] : [],
})
export const { signIn, signUp, signOut, useSession } = authClient
diff --git a/src/web/src/lib/auth.ts b/src/web/src/lib/auth.ts
index 6f6fd2787..7bca5f038 100644
--- a/src/web/src/lib/auth.ts
+++ b/src/web/src/lib/auth.ts
@@ -1,4 +1,7 @@
import { betterAuth } from "better-auth"
+import { emailOTP } from "better-auth/plugins"
+
+const isProduction = (env: Env) => env.NEXTJS_ENV === "production"
export function createAuth(env: Env) {
return betterAuth({
@@ -6,7 +9,7 @@ export function createAuth(env: Env) {
database: env.DB,
secret: env.BETTER_AUTH_SECRET,
emailAndPassword: {
- enabled: true,
+ enabled: !isProduction(env),
requireEmailVerification: false,
},
socialProviders: {
@@ -19,5 +22,15 @@ export function createAuth(env: Env) {
clientSecret: env.GOOGLE_CLIENT_SECRET,
},
},
+ plugins: isProduction(env)
+ ? [
+ emailOTP({
+ async sendVerificationOTP({ email, otp, type }) {
+ // TODO: Wire up your email provider (Resend, SES, SMTP, etc.)
+ console.log(`[OTP] type=${type} email=${email} otp=${otp}`)
+ },
+ }),
+ ]
+ : [],
})
}