A crucial part of most full-stack apps is a proper Auth solution.
The rule of thumb is usually not to reinvent the wheel and choose already existent solutions, actively maintained and tested by the community.
Some of the first ones that come to my mind are Passport JS, Permit, and Grant. What libs do you use, when not writing auth from gound-up?
Top comments (7)
Firebase Authentication
Yes, this is one of the easiest and fastest to setup authentication methods for any quick web app. I personally work with a lot of firebase related stuff and its one of the best libraries to use not only for authentication, but also for any kind of web app as a database and cloud functions for asynchronous actions on a cloud level.
To add, I cannot use Passport.js, as I am not using Express.js. I am using Fastify.
I can use Auth0 + JWT, but there is still too much work to do, as it is not officially supported.
I normally use Firebase + Firebase-admin, but I recently failed to make it work in JVM environment (Kotlin). (Another language I am considering is Golang.)
My solution is actually a custom handler, though. I cannot really see why I would use Permit. But Grant does look full featured, and I might consider... But then again, I might not use TS/JS/Node.js. (Nor do Spring Boot / Flask / Django)
Firebase authentication
It's quite easy to work with
Only magic.link for the moment, a tad slow for me since I'm in Europe and they currently only has servers in the US but hoping they change that soon. Passwordless login is the way to go nowadays imo!
I was considering Cotter as well. Similar?
nuxt-auth