Skip to content

Commit

Permalink
Log user metadata in onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIJ committed Sep 11, 2024
1 parent 294ef21 commit 899c241
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 899c241

Please sign in to comment.