hello everyone, im finding extremely
hello everyone, im finding extremely confusing to configure authentication with a stack with next.js, clerk, and convex, so many tutorials referring each other, im kind of lost and i dont know wat is the official tutorial anymore. am I missing something? is instead convex auth now reccomended?
4 Replies
If you're using Next 15, ConvexProviderWithClerk hasn't been updated for the async request changes yet, which can cause it to fail/error.
But if it's not that, what are you having trouble with? This is the main guide you should follow for Next/Clerk: https://docs.convex.dev/auth/clerk
The Clerk documentation assumes a more standard Next set up without something like Convex, which may confuse things
Convex & Clerk | Convex Developer Hub
Clerk is an authentication platform providing login via
thanks for quick reply. Confusing part for me is this, it sends me to next tutorial
Clerk works great, as mentioned there the Next.js setup guide is the place to go.
You should put the ConvexProviderWithClerk provider in a client component as shown here - but otherwise it should be the same as the guide I linked, for client side auth. SSR is where the Next.js specific details come into play, which are important when you're using
preloadQuery
etc. If you're able to get a basic client-side setup working, you can move onto the server stuff later if needed