We try using Ahoy with a React.js application and need to add custom token authentication to controllers. The gem inherits from the ApplicationsController which isn't used in our application for the API and doesn't allow us to apply token-based authentication.
As a workaround I've reopened the base controller and included some of the required concerns:
class Ahoy::BaseController < ApplicationController
include APIExceptions
include APITokenAuth
end
But in our case, it doesn't seem right to me that it inherits from the ApplicationsController.
We try using Ahoy with a React.js application and need to add custom token authentication to controllers. The gem inherits from the
ApplicationsControllerwhich isn't used in our application for the API and doesn't allow us to apply token-based authentication.As a workaround I've reopened the base controller and included some of the required concerns:
But in our case, it doesn't seem right to me that it inherits from the
ApplicationsController.