Disable development sessions

I use Rails 3 and come up with. I am creating a reassuring api, and I want the development to follow the special oversight strategy that I wrote for each request. But I see that it authenticates the user, and then uses the session to verify subsequent requests.

How can I completely disconnect a session? Or get Devise for full authentication every time? Or is it just a matter of implementing something in my user strategy?

+6
source share
1 answer

I am sure that adding this to your strategy will do what you want:

Warden::Manager.serialize_into_session {} Warden::Manager.serialize_from_session {} 
0
source

Source: https://habr.com/ru/post/889829/


All Articles