Skip to content

Commit a6ebd4c

Browse files
Deletes session if token is expired
1 parent 5b0fad7 commit a6ebd4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kracken/controllers/authenticatable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def authenticate_user!
4949

5050
def check_token_expiry!
5151
if session[:token_expires_at].nil? || session[:token_expires_at] < Time.zone.now
52-
session.delete :user_id
52+
delete_session_data
5353
end
5454
end
5555

0 commit comments

Comments
 (0)