I have an app (VueJS frontend and Rails 5.2 API). I’m using the JWT gem on the backend to authorize each API call.
I followed this tutorial:
The problem is, this is adding 200ms+ of latency for each API call. I would be willing to deal with 10-50ms, but 200 is just too slow. I am wondering if this is normal, or if this is because I am running this in dev mode?
true, # Verify the signature of this token
verify_aud: true) do |header|
Since this is called for every API call, this adds significant lag to my app. How can I speed this up?