Authentication libraries
Sign users in, keep their sessions, and check tokens. We rate 10; Better Auth leads with 8.5 out of 10.
The numbers
Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.
| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
|---|---|---|---|---|---|---|
| Better Auth | 76M | ×42 | 31k | 3k | Nov 2026 | 26 |
| jose | 915M | ×10 | 7.9k | 291 | Nov 2026 | 0 |
| openid-client | 95M | ×5.4 | 2.5k | 147 | Nov 2026 | 0 |
| iron-session | 15M | ×6.3 | 4.2k | 31 | Nov 2026 | 0 |
| SuperTokens | 316k | ×2.4 | 330 | 127 | Oct 2026 | 0 |
| jsonwebtoken | 328M | ×3.3 | 18k | 5 | Dec 2025 | 0 |
| Passport | 42M | ×2.4 | 24k | 0 | Nov 2023 | 0 |
| Auth.js | 37M | ×4.2 | 28k | 26 | Jul 2026 | 5 |
| Arctic | 6M | ×9.3 | 1.7k | 6 | May 2025 | 0 |
| Lucia | 2.9M | ×9.8 | 10k | 9 | Oct 2024 | 0 |