feat: refactor onboarding into a multi-step flow with dedicated routes and session state management

This commit is contained in:
Jose Selesan
2026-04-17 16:17:19 -03:00
parent 4588e63fa5
commit 20b70c06c1
12 changed files with 617 additions and 382 deletions

View File

@@ -368,6 +368,11 @@ export async function completeOnboarding(input: OnboardingCompleteInput) {
const complexSlug = await buildUniqueComplexSlug(input.complexName);
const result = await db.$transaction(async (tx) => {
await tx.user.update({
where: { id: user.id },
data: { emailVerified: true },
});
const complex = await tx.complex.create({
data: {
id: uuidv7(),