def logout(): try: user = getUser(session['userId']) creds = MongoStorage(user).get() http = httplib2.Http() creds.revoke(http) except Exception as e: pass session.pop('userId', None) session.pop('user', None) return redirect("/")
def logout(): try: user = getUser(session['userId']) creds = MongoStorage(user).get() http = httplib2.Http() creds.revoke(http) except Exception as e: pass session.pop('userId', None) session.pop('user', None) return redirect("/")