Files
accounted/app/(onboarding)/layout.tsx
T
Mattssonandgreptile-apps[bot] c7672e538a Logging (#30)
* Added loggin for the onboarding flow.

* Logging for potential errors

* feat: enhance onboarding error logging with server-side capture

* Update app/(onboarding)/onboarding/page.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-03-16 11:31:58 +01:00

19 lines
434 B
TypeScript

import { createClient } from '@/lib/supabase/server'
import { SentryIdentify } from '@/components/SentryIdentify'
export default async function OnboardingLayout({
children,
}: {
children: React.ReactNode
}) {
const supabase = await createClient()
const { data: { user } } = await supabase.auth.getUser()
return (
<>
{children}
{user && <SentryIdentify userId={user.id} email={user.email} />}
</>
)
}