I have a controller named topics. When I visit the page that should be authenticated by devise gem. But, using POSTMAN for testing JSON requests, shows a error like this..
{
"error": "You need to sign in or sign up before continuing."
}
This causes due to the devise authentication. In order to avoid this issue, I simply put as a
skip_before_action:authenticate_user!
In my opinion this ignores the authentication. If there is any way to use devise normal authentication for HTML request and API basic authentication for JSON requests?