Better Auth Now Have JWT Plugin with JWKs support
This means you can use this talk to services that aren’t running JavaScript or don’t have direct access to your database session and validate tokens using JWKs instead.
(this isn't meant to replace sessions)
https://www.better-auth.com/docs/plugins/jwt