Skip to content

Commit

Permalink
Merge pull request #199 from h8570rg/develop
Browse files Browse the repository at this point in the history
Prd
  • Loading branch information
h8570rg authored Dec 19, 2024
2 parents d5aadcd + b24dce9 commit 42a15ae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/(auth)/(routes)/login/(components)/LoginForm/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export async function signInEmail(
}

revalidatePath("/", "layout");
redirect("/");
redirect("/matches");
}

/**
Expand All @@ -80,5 +80,5 @@ export async function signInAnonymously() {
const supabase = createClient();
await supabase.auth.signInAnonymously();

redirect("/");
redirect("/matches");
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export async function updateProfile(
}
}

revalidatePath("/");
redirect("/");
revalidatePath("/", "layout");
redirect("/matches");
}

export async function signOut() {
Expand Down
2 changes: 1 addition & 1 deletion app/(auth)/(routes)/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function RegisterPage() {
const user = await getUserProfile();

if (user.name && user.janrecoId) {
redirect("/");
redirect("/matches");
}

return (
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/(components)/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Navbar() {
<NextUINavbar shouldHideOnScroll>
<NavbarContent>
<NavbarBrand>
<Link color="foreground" href="/">
<Link color="foreground" href="/matches">
<Logo className="text-large" />
</Link>
</NavbarBrand>
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function GET(request: Request) {
if (profile.isUnregistered) {
return NextResponse.redirect(`${origin}/register`);
}
return NextResponse.redirect(`${origin}${next}`);
return NextResponse.redirect(`${origin}${next}/matches`);
}
}

Expand Down

0 comments on commit 42a15ae

Please sign in to comment.