NuxtN
Nuxt6mo ago
4 replies
whorf

Auth solutions for Cloudflare Workers

I think I've decided I want to build a Nuxt app deployed with CF Workers, but I'm getting confused on auth. I'm pretty new to webdev in general so sorry if any of this is dumb:
BetterAuth got a lot of recommendations but it looks like it doesn't have good worker compatibility.
Auth.js advertises good worker compat but there's some drama about there not being official Nuxt integration (does this matter much?), and the community module doesn't seem to have worker compat because it relies on Nuxt Server?
These's a nuxt-auth-utils module with good worker compat but I feel like I'd be straying a bit too far from popular, well-supported standards at that point, which is somewhat important to me in case solutions like this just get randomly archived.
Clerk was also highly recommended but the costs seem way too high if the site gets really popular.
I see some people recommending things like supabase auth but I don't want to pay for and call out to other services if I can help it.

I just want something well-supported and easy to wire up in a Nuxt app in an edge runtime environment. I'm guessing Auth.js would be fine but the drama over the official nuxt module and the lack of worker compat from the community module has me confused on how easy it would be to use.
Was this page helpful?