You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we need to send access token in the curl request every time ?
My calls_controller inherits the application controller
class Api::V1::CallsController < Api::V1::ApplicationController
and my application controller -
class Api::V1::ApplicationController < ActionController::API #Note: here is not ::BASE
include DeviseTokenAuth::Concerns::SetUserByToken
The text was updated successfully, but these errors were encountered:
Hi,
Please let me know how to access current_staff (my Devise model is called 'Staff' instead of User) after logging in -
I am sending request like this - curl -XGET -v -H 'Content-Type: application/json' http://localhost:3000/api/v1/calls/
But getting an error - NameError (uninitialized constant Api::V1::CallsController::AuthorizationException):
app/controllers/api/v1/calls_controller.rb:348:in `authenticate_staff!'
Do we need to send access token in the curl request every time ?
My calls_controller inherits the application controller
class Api::V1::CallsController < Api::V1::ApplicationController
and my application controller -
class Api::V1::ApplicationController < ActionController::API #Note: here is not ::BASE
include DeviseTokenAuth::Concerns::SetUserByToken
The text was updated successfully, but these errors were encountered: