You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app, the user can login via oauth (using omniauth). They log out by calling Devise::SessionsController#destroy. When this happens, current_user is nil, and the session object is reset. All good, seemingly.
However, when the user tries to login via oauth again, and the omniauth callback gets called, current_user is already present! In the callback, session.to_json returns a valid session with the user that was previously logged in. This makes me think that the session isn't resetting properly during logout. I've spent a fair amount of time trying to debug this line by line but haven't gotten anywhere. Has anyone else experienced this problem?
I read over this issue but that was for cookie-store only.
The text was updated successfully, but these errors were encountered:
In my app, the user can login via oauth (using omniauth). They log out by calling
Devise::SessionsController#destroy
. When this happens,current_user
is nil, and thesession
object is reset. All good, seemingly.However, when the user tries to login via oauth again, and the omniauth callback gets called,
current_user
is already present! In the callback,session.to_json
returns a valid session with the user that was previously logged in. This makes me think that the session isn't resetting properly during logout. I've spent a fair amount of time trying to debug this line by line but haven't gotten anywhere. Has anyone else experienced this problem?I read over this issue but that was for
cookie-store
only.The text was updated successfully, but these errors were encountered: