Skip to content

Commit c02d5d6

Browse files
authored
Update index.ts
1 parent 8dbba98 commit c02d5d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/with-auth/src/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ export const logout = action(async () => {
3333
"use server";
3434
const session = await getSession();
3535
await session.update({ id: undefined });
36-
return redirect("/login", { revalidate: "session" });
36+
throw redirect("/login", { revalidate: "session" });
3737
});

0 commit comments

Comments
 (0)