File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11"use client"
22
3- import { useEffect , useState } from "react"
3+ import { Suspense , useEffect , useState } from "react"
44import { useRouter , useSearchParams } from "next/navigation"
55import { useAuth } from "@/providers/auth-provider"
66import { zodResolver } from "@hookform/resolvers/zod"
@@ -33,7 +33,7 @@ const formSchema = z.object({
3333 email : z . string ( ) . email ( "Invalid email address" ) ,
3434} )
3535
36- export default function Auth ( ) {
36+ function AuthContent ( ) {
3737 const { user } = useUser ( )
3838 const { passkeyClient } = useTurnkey ( )
3939 const { initEmailLogin, state, loginWithPasskey } = useAuth ( )
@@ -170,3 +170,11 @@ export default function Auth() {
170170 </ >
171171 )
172172}
173+
174+ export default function Auth ( ) {
175+ return (
176+ < Suspense fallback = { < div > Loading...</ div > } >
177+ < AuthContent />
178+ </ Suspense >
179+ )
180+ }
You can’t perform that action at this time.
0 commit comments