Skip to content

Commit 60ec21d

Browse files
fix(auth): add missing withAuth check to tasks page
The tasks page was missing server-side auth validation, causing "Not authenticated" errors on hard reload while client-side navigation worked fine. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1755e09 commit 60ec21d

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

  • src/app/[locale]/(authenticated)/tasks
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1+
import { withAuth } from "@workos-inc/authkit-nextjs";
12
import { TasksClient } from "./tasks-client";
23

3-
/**
4-
* Tasks Page (Server Component)
5-
*
6-
* Protected by the (authenticated) layout which uses
7-
* server-side auth check via `withAuth({ ensureSignedIn: true })`.
8-
*
9-
* Task data is loaded client-side via usePaginatedQuery for
10-
* pagination, search, and real-time subscription support.
11-
*/
12-
export default function TasksPage() {
4+
export default async function TasksPage() {
5+
await withAuth({ ensureSignedIn: true });
136
return <TasksClient />;
147
}

0 commit comments

Comments
 (0)