I have implemented facebook authentication in my rails app with devise and omniauth according to this railscast: http://railscasts.com/episodes/236-omniauth-part-2 My question is how to handle the authentications objects.
If I understand it right, when I log in with facebook the token is valid for some time and is saved into the authentications table. How the hell is the expiration handled? Even more, If I log out the authentication stays in the table. So when I log in again, it will find the old authentication model. Shouldn't the authentications table be cleared if the user sings out?