DEV Community

Cover image for What authentication libraries do you use?

What authentication libraries do you use?

Discussions. πŸ’¬ Tools. πŸ›  Resources. πŸ“š All things productivity. πŸŽ―πŸš€πŸ’―
・1 min read

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?

Discussion (7)

daviddalbusco profile image
David Dal Busco • Edited

Firebase Authentication

  • easy to integrate (specially with its UI component firebase-ui)
  • free (if I am not wrong)
  • email, gmail, github, twitter, etc. lots of auth options
  • can handle anonymous users
soorajsnblaze333 profile image
Sooraj • Edited

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.

patarapolw profile image
Pacharapol Withayasakpunt • Edited

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)

abiolaesther_ profile image
Abiola Esther

Firebase authentication
It's quite easy to work with

snorkypie profile image
Steeve Lennmark

Only 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!

patarapolw profile image
Pacharapol Withayasakpunt

I was considering Cotter as well. Similar?

cds profile image
Chandrakant Sangale