I deployed my project on Heroku for production testing.
In development environment I can use Rails.application.credentials.dig(:secret_key_base)
to get secret key base for JWT authentication:
# example
def decode(token)
key = Rails.application.credentials.dig(:secret_key_base)
JWT.decode(token, key)
end
But when I use that in Heroku it returns "nil". I tried entering it in the console via rails console
and it returned "nil".
What do I do to make it available in production?