Web Dev CodyW
Convex Community2y ago
8 replies
Web Dev Cody

How to know if authenticated in next client component?

I'm not sure if I misconfigured next.js and convex auth, but it seems like isAuthenticated never sets true for me.

const { isAuthenticated } = useConvexAuth();
console.log("isAuthenticated", isAuthenticated); // always false

I setup the auth with google, and I'm able to successfully go through the oauth flow and redirect back to my app.
Was this page helpful?