Oren
Oren5mo ago

auth docs are misleading

https://labs.convex.dev/auth/setup says run npm create convex@latest -> next.js -> convex auth but only options are clerk and none
Set Up Convex Auth - Convex Auth
Authentication library for your Convex backend
2 Replies
Oren
OrenOP5mo ago
and here https://labs.convex.dev/auth/config/oauth code example for src/SignIn.tsx needs to be client component with "use client"
OAuth - Convex Auth
Authentication library for your Convex backend
Michal Srb
Michal Srb5mo ago
The template is work in progress, that's indeed wrong. Here we note that "use client" might be required: https://labs.convex.dev/auth/setup#set-up-the-react-provider
Note that the React examples in this documentation are all Client Components unless noted otherwise, so you might need to add "use client" to their source.
Set Up Convex Auth - Convex Auth
Authentication library for your Convex backend

Did you find this page helpful?