def sign_out(): # remove the token from the session if it's there session.pop('access_token', None) return redirect(url_for('index'))