So I'm trying to secure my web application by using JWT in Scalatra. At the moment I'm using Scentry with both User-Password and RememberMe strategies and my intention is to swap the cookie-based authentication in RememberMe strategy with JWT authentication.
I have found this implementation I can use with json4s (example) but I'm not sure of how to include these features in my code. Can I just simply switch the verifications done with cookies in RememberMe for JWT verifications?