I've implemented Devise with token authentication/json api. My problem now, whenever the "?auth_token" is wrong or missing, devise redirects me "HTTP/1.1 302 Moved Temporarily" to my intended json error response instead of giving it back directly: "HTTP/1.1 403 Forbidden".
My error response comes from my SessionsController < Devise::SessionsControllers "new" action, which I assume is probably the wrong place for it.
I can't find the place where devise does the redirect or where I can change this behavior. Can anyone maybe give me a clue?
Thank you very much, chris