app/helpers/jwt_wrapper.rb
Showing 2 of 2 total issues
Use ENV.fetch('JWT_SECRET_KEY')
or ENV.fetch('JWT_SECRET_KEY', nil)
instead of ENV['JWT_SECRET_KEY']
. Open
Open
JWT.encode(payload, ENV['JWT_SECRET_KEY'])
- Read upRead up
- Exclude checks
Use ENV.fetch('JWT_SECRET_KEY')
or ENV.fetch('JWT_SECRET_KEY', nil)
instead of ENV['JWT_SECRET_KEY']
. Open
Open
JWT.decode(token, ENV['JWT_SECRET_KEY']).first
- Read upRead up
- Exclude checks