-
Notifications
You must be signed in to change notification settings - Fork 238
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 failed : provide a valid authorization token #14
Comments
Hey, I've just solve the logout problem. You should specify an authorization dictionary and give it to Api as a parameter. For that: Firstly add this ->
to the root directory init.py and then add authorizations dictionary as an Api param ->
This makes all api methods required auth. Last thing you should do is replaceing This worked for me, hope this helps you too. |
where to add the api line ? |
this is my init.py file
|
No, not into this init.py file, you should put There is two file named init.py. One is belong to main package and other one is belong to top package. My name of top package of main is app. So i put that into app's init.py. You should do the same. Not into inner init.py You need an init.py file like this:
|
@prashantjeena !! but you have to set the token in your Header request, see the screenshot |
Getting this error on auth_helper logout_user method |
@Kpatric! Check your data param EDIT : |
I reached at this point in my app, but when i tried executing login and logout in localhost login worked fine but logout gave this error : provide a valid authorization token .
Please take a look. Thanks in advance
The text was updated successfully, but these errors were encountered: