Devise authentication, signin loop

Hello, i am new to rails, i am starting an app with devise for authentication, but when i add the line
before_action :authenticate_user!

``

in the ApplicationContoller, when we login it just keeps landing on the login page again in a loop. but when i remove the above line it’s working and is redirecting to the root url.

Any advise please ?

Are you skipping the filter on the sessions controller?

Fred

Hi Fred, i thought of it, but i couldn’t find the session helper , i think it’s handled inside the devise libraries