app/features-json/api_controller.rb
Method jwt
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def jwt
authorization = request.env["HTTP_AUTHORIZATION"]
bearer_token = authorization && authorization.slice(7..-1) # strip off the `Bearer `
# give the option to pass the bearer token as a query param.