useKindeBrowserClient isAuthenticated
In my nextjs app, I'm using Kinde Auth:
This will always print out:
Any idea how to fix this?
import { useKindeBrowserClient } from "@kinde-oss/kinde-auth-nextjs";
export function NavMain(items) {
const { isAuthenticated, user } = useKindeBrowserClient();
console.log("Auth state:", { isAuthenticated, user });
const filteredItems = items.filter(
(item) => item.requiresAuth && isAuthenticated
);
This will always print out:
Auth state: { isAuthenticated: false, user: null } despite the fact that I'm logged in through Kinde Google Auth?Any idea how to fix this?