Rails 8 introduced an authentication generator, which is cool, but it's only related to cookies-based sessions. If you're building Rails apps and want to authenticate users with Bearer tokens (as a pure API for example), here's a ready-to-start-with project : github.com/xamey/rails-...
GitHub - xamey/rails-with-jwt: A Rails 8.0.2 starter app with Bearer JWT
A Rails 8.0.2 starter app with Bearer JWT. Contribute to xamey/rails-with-jwt development by creating an account on GitHub.
github.com