ccoenraets / OpenFB

Micro-library that lets you integrate browser and Cordova apps with Facebook with no plugin or SDK dependency.
MIT License
507 stars 229 forks source link

Logout Issues #121

Open tennist opened 7 years ago

tennist commented 7 years ago

I found an issue that when I click the logout button in my app everything appears to work as its supposed to. The app is no longer able to access the pages for logged in users and the login and create account buttons are all that appear in my user menu. However, when I close the app and reopen it , the last user is still logged in. I found the following error in the code. The logout function is not actually deleting the token on logout due to the error. Line 207 of the current code file needs to be change from:

tokenStore.removeItem('fbtoken');

to:

tokenStore.removeItem('fbAccessToken');