We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f90fc0 commit 47b647dCopy full SHA for 47b647d
2 files changed
apps/web/layouts/LayoutDefault.tsx
@@ -40,7 +40,7 @@ function AuthSection() {
40
<div className="flex w-full p-2 my-2 flex-col border-2 border-neutral-300">
41
<span className="font-bold">Logged in as: {user.username}</span>
42
43
- <Link href="/logout" onclick={handleLogout}>
+ <Link href="#" onclick={handleLogout}>
44
Logout
45
</Link>
46
</div>
apps/web/pages/login/+guard.ts
@@ -3,7 +3,6 @@ import { redirect } from "vike/abort"
3
import type { GuardAsync } from "vike/types"
4
5
const guard: GuardAsync = async (pageContext): ReturnType<GuardAsync> => {
6
- console.log("guard", pageContext.user)
7
if (pageContext.user) {
8
throw redirect("/")
9
}
0 commit comments