Hey, thanks for sharing this amazing guide!
Three things to point out:
- In Rails 6, if you put lib files under app/lib they are autoloaded, meaning you don’t have to load them manually in the ApplicationController.
-
Rails.application.config.x.auth0was returning an empty hash in my case, so I had to do:Rails.application.config_for(:auth0)[:Key-I-Need] - I had some issues decoding the token, so for me on
JWT.decodeinstead ofiss: Rails.application.config.x.auth0.issuerUri,I usedissuer: issuer,