Skip to content

Commit

Permalink
Merge pull request #42 from diggerhq/fix/onboarding-freeze
Browse files Browse the repository at this point in the history
Log user metadata in onboarding
  • Loading branch information
ZIJ authored Sep 11, 2024
2 parents 5024933 + 899c241 commit 8c6edd7
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 8c6edd7

Please sign in to comment.