content within <Unauthenticated /> display regardless of user status
I followed the WorkOS authentication guide for Next.js at https://docs.convex.dev/auth/authkit/ and after signing up with a google account, and the user object being present from workos' useAuth(), it still only displays the content from <Unauthenticated /> and not <Authenticated />.
Convex & WorkOS AuthKit | Convex Developer Hub
Integrate WorkOS AuthKit authentication with Convex
5 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
isAuthenticated from useConvexAuth() is false, while the user object from workos' useAuth() is populated and logged in.
Can you share your convex/auth.config.ts
I switched to Clerk now so this isn't a problem anymore for me, but just following the guide for Next.js on the Authkit seems to fail. Should be worth looking into.
Its also not because of it being Next.js 16, only difference there is that middleware.ts is now called proxy.ts but its esseentially the same.
Needed to drop the applicationID from that second entry, docs need to be updated for this