KindeK
Kinde13mo ago
2 replies
Wim

useKindeBrowserClient isAuthenticated

In my nextjs app, I'm using Kinde Auth:

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?
Was this page helpful?