Auth with JSON Web Tokens (JWT) & BCrypt (Part I: Rails)

Catherine O'Hara
Oct 7, 2019 · 6 min read

In this article, we will be walking through how to set up user auth in your backend by creating JWTs for storing in the browser’s localStorage object. Please note that this might not be the best method for an app that requires high security for sensitive data. In that case, please look into using sessions/cookies. However, the benefit of localStorage is that it runs independent from your…