DEV Community

Cover image for What authentication libraries do you use?
Madza
Madza Subscriber

Posted on

What authentication libraries do you use?

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)

Collapse
 
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
Collapse
 
soorajsnblaze333 profile image
Sooraj (PS) • 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.

Collapse
 
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)

Collapse
 
abiolaesther_ profile image
Abiola Esther

Firebase authentication
It's quite easy to work with

Collapse
 
snorkypie profile image
Steeve Lennmark

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!

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I was considering Cotter as well. Similar?

Collapse
 
cds profile image
cds

nuxt-auth