LightTab2 f9b19fb11b fix(jwt): Allow to generate JWKS with other algorithm than the default one (#3219)
* Fixes #3218

* Lint

* Adds tests to every currently available algorithm

* fixes duplicate test names

Oversight

* Disables EdDSA(Ed448) test for now, removes debug print

Will think if the found bug should be addressed in a seperate issue

* Drops testing support for Diffie-Hellman algorithms

Adds comments why some algorithms are not tested

* new tests are for token generation

On my local machine all tests passed, but on CI some weird error occurred with `getSession`. Changed `client.getSession` to simply `client.token`. Should consider separate tests for `client.getSession`

* More robust tests, checks for failures of called testing functions

Tests `signInWithTestUser` and `getTestInstance` for possible failures

* Should locate which test fails

* removes inline functions

They're the reason why errors escaped `it()`!

* Fixes 'createKeys' inline function replacement

* Adds client tests

* Adheres to AI review, skips a duplicate test

AI might have hallucinated there but w/e

* Final cleanup, `headers` as `var` to infer types correctly

* Headers fix

I forgot to commit one change when typescript check failed and maybe because of that. Setting headers to `var` breaks tests, so gotta revert
2025-07-06 00:21:09 -07:00
2024-12-14 21:30:42 +03:00
2025-06-28 16:01:22 -07:00
2024-11-01 09:24:14 +03:00
2024-11-01 09:24:14 +03:00
2024-09-28 21:35:30 +03:00
2024-09-28 21:35:30 +03:00
2024-09-27 13:25:41 +03:00
2025-04-11 09:54:01 +03:00
2025-04-05 11:40:41 +03:00
2025-02-25 13:43:10 +03:00
2024-08-31 17:13:51 +03:00

Better Auth Logo

Better Auth

The most comprehensive authentication library for TypeScript
Learn more »

Discord · Website · Issues

npm npm version GitHub stars

About the Project

Better Auth is framework-agnostic authentication (and authorization) library for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code in short amount of time. Whether you need 2FA, multi-tenant support, or other complex features. It lets you focus on building your actual application instead of reinventing the wheel.

Why Better Auth

Authentication in the TypeScript ecosystem is a half-solved problem. Other open-source libraries often requires a lot of additional code for anything beyond basic authentication. Rather than just pushing third-party services as the solution, I believe we can do better as a community—hence, Better Auth.

Contribution

Better Auth is free and open source project licensed under the MIT License. You are free to do whatever you want with it.

You could help continuing its development by:

Security

If you discover a security vulnerability within Better Auth, please send an e-mail to security@better-auth.com.

All reports will be promptly addressed, and you'll be credited accordingly.

Description
No description provided
Readme 267 MiB
Latest
2026-04-16 05:05:30 -05:00
Languages
TypeScript 99.4%
CSS 0.3%
MDX 0.2%