-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logout example is not working as blueprint's token is None #323
Comments
If Does that help? |
The issue is that there is a token in the storage, associated with the logged in user. My guess is that in this code, the facebook_logged_in function (annotated with @oauth_authorized.connect_via), does not update the blueprint with the retrieved token. The token is stored in the backend storage, but cannot be accessed through the blueprint. I suppose that that last line
causes the problem, as something of the default behavior is missing. Does that I am saying make sense? |
I am trying to implement a logout functionality with revoke enabled, for facebook and I am following this example: https://flask-dance.readthedocs.io/en/latest/logout.html
The problem is that s the token is None in this line:
token = blueprint.token["access_token"]
I followed this example for storing oauth objets.
I found a similar question here for google.
The text was updated successfully, but these errors were encountered: