Skip to content
Browse files

Session expiry on facebook oauth token expiry

  • Loading branch information...
1 parent 58c0ed2 commit 9dc84d27a410297f3e82cdecb47062dda83179de @subhranath committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 facebook/views.py
View
1 facebook/views.py
@@ -58,6 +58,7 @@ def login_handler(request):
if user is not None:
if user.is_active:
login(request, user)
+ request.session.set_expiry(fb_user.expiry_at)
if 'next' in request.GET:
return HttpResponseRedirect(request.GET['next'])
return HttpResponseRedirect(settings.LOGIN_REDIRECT_URL)

0 comments on commit 9dc84d2

Please sign in to comment.
Something went wrong with that request. Please try again.