From 899c2412efea507864cf75db261d1c6f51330d67 Mon Sep 17 00:00:00 2001 From: Igor Zalutski Date: Wed, 11 Sep 2024 11:17:05 +0100 Subject: [PATCH] Log user metadata in onboarding --- src/middleware.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middleware.ts b/src/middleware.ts index 25649ae7..e221cdf4 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -53,6 +53,7 @@ function shouldOnboardUser(pathname: string, user: User | undefined) { const isOnboardingRoute = matchOnboarding(pathname); if (!isUnprotectedPage(pathname) && user && !isOnboardingRoute) { const userMetadata = authUserMetadataSchema.parse(user.user_metadata); + console.log('user metadata:', userMetadata); const { onboardingHasAcceptedTerms, onboardingHasCompletedProfile,