shadow_aya
shadow_aya•17mo ago

by the way I m new here and also new to

by the way, I'm new here and also new to Convex; it's pretty good so far, but I'm surprised the go-to for auth is clerk, a paid service. I tried to implement my own Convex NextAuth adapter and failed miserably it'd seem. it's pretty frustrating. it might be worth doing without these libraries, but I'm afraid that's even harder. all of this is kinda giving me a headache tbh. tried NextAuth for the first time a few days prior, and it worked well, but then I wanted to connect it to a db, and here we are...
6 Replies
Mikael Lirbank
Mikael Lirbank•17mo ago
Hey, we're singing on the same song 😄 Auth with Convex is a bit awkward and should be much more straight forward (I am sure the team is working on it, or have plans for it, though). A lot of it has to do with Convex using websockets intead of http (a good thing) and the lack of documentation around the matter (and some official middleware helpers would be epic 😉). There is an example here that might help: https://stack.convex.dev/convex-with-lucia
Custom Authentication (with Lucia)
Learn how to build a full stack app with authentication without any third-party auth providers, using Convex and the Lucia library.
Mikael Lirbank
Mikael Lirbank•17mo ago
I agree a million percent to your sentiment, Convex should by default support some library based auth, not a service (paid or not).
jamwt
jamwt•17mo ago
@shadow_aya (1) I would take a look at the convex-with-lucia example that @Mikael Lirbank listed; (2) technically, convex works with any OpenID connect provider. see https://docs.convex.dev/auth/custom-auth
Custom Auth Integration | Convex Developer Hub
Convex can be integrated with any identity provider supporting the
jamwt
jamwt•17mo ago
more will come, but so far we've been following ecosystem demand: most users are interested in a full-featured service that supports tons of features and identity providers, so that's why clerk and auth0 are the first couple to document and recommend thoroughly. thanks for the feedback!
Mikael Lirbank
Mikael Lirbank•17mo ago
@shadow_aya I also want to point out that Convex has an epic support and they jumped in and helped us getting auth right in our app. We're pretty invested in Convex for the app we're building and my team are big fans and really like working with Convex. So give it a shot, and if you have issues, reach out here on Discord, the team is really active and tend to reply really quickly.
shadow_aya
shadow_ayaOP•17mo ago
appreciate the feedback! now it makes more sense, and keeping up with demand must be hard. I'm gonna check the lucia example as a big typescript fan, I naturally love how Convex works. makes working with databases very easy

Did you find this page helpful?