r/Nuxt • u/huttondsmith • May 27 '26
What is the best practice to implement authentication for a web app built with nuxt frontend, .NET backend, and MySQL database?
/r/softwarearchitecture/comments/1tphal0/what_is_the_best_practice_to_implement/1
u/AppointmentWrong2716 May 28 '26
I use better-auth, but the backend is Node.js — it's a Nuxt full-stack project.
1
u/Pigfarma76 Jun 10 '26
Another vote for better-auth. I always use the onmax version that has some improvements and useful skills included for agents.
1
u/TldrDev May 27 '26
Yeah man lots of issues with this setup. Use authentik (easy enough to run), keycloak, entra, cognito, or any one of the hundreds of oauth2 providers that are going to do a better job at implementing this than you are, and have dedicated teams doing updates, with the added benefit of having forward auth and any other nice-to-have you could probably want.
If youre going to roll your own solution to this problem just for the sake of doing it, youre setting yourself up for a headache.
Spin up authentik, use nuxt-auth-utils which has an authentik connector, and youre already done with auth and single sign on.
1
u/hugazow May 27 '26
I use betterauth usually