Open ausangshukla opened 3 months ago
For those looking to do this, here is what Ive done to make it work
def authenticate_user!
if request.headers['Authorization'].present?
authenticate_devise_api_token!
@current_user = current_devise_api_user
else
super
end
end
def verify_authenticity_token
super if request.headers['Authorization'].blank?
end
Thanks in advance