Skip to content

Commit

Permalink
fix: Fix invalid sub claim error
Browse files Browse the repository at this point in the history
  • Loading branch information
storm1729 committed Dec 15, 2024
1 parent 33537ab commit 7dc306d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[lang]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function Index({
const supabase = createClient(cookieStore);
const session = await supabase.auth.getSession();

if (session) {
if (session?.data?.session) {
return redirect(`/${lang}/dashboard`);
} else {
return redirect(`/${lang}/login`);
Expand Down

0 comments on commit 7dc306d

Please sign in to comment.