We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dbba98 commit c02d5d6Copy full SHA for c02d5d6
1 file changed
examples/with-auth/src/auth/index.ts
@@ -33,5 +33,5 @@ export const logout = action(async () => {
33
"use server";
34
const session = await getSession();
35
await session.update({ id: undefined });
36
- return redirect("/login", { revalidate: "session" });
+ throw redirect("/login", { revalidate: "session" });
37
});
0 commit comments