MITLibraries/timdex

View on GitHub
app/helpers/jwt_wrapper.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

JWT.encode(payload, ENV['JWT_SECRET_KEY'])
Severity: Minor
Found in app/helpers/jwt_wrapper.rb by rubocop

Use ENV.fetch('JWT_SECRET_KEY') or ENV.fetch('JWT_SECRET_KEY', nil) instead of ENV['JWT_SECRET_KEY'].
Open

JWT.decode(token, ENV['JWT_SECRET_KEY']).first
Severity: Minor
Found in app/helpers/jwt_wrapper.rb by rubocop
Category
Status