Skip to content
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

user.authenticated not working properly #6

Open
JobaDiniz opened this issue May 17, 2014 · 3 comments
Open

user.authenticated not working properly #6

JobaDiniz opened this issue May 17, 2014 · 3 comments

Comments

@JobaDiniz
Copy link

I think user.authenticated is not working properly, not sure thou, could be something else.
When I logged in in my app and close the tab and after some time, like several hours (maybe days, not sure), I open my app again (without closing the browser), the user.get and oauth.connection.search (to ge the facebook image) fails with:

{"error_code":"INVALID_CREDENTIALS","message":"Unable to authenticate as user. Provided token does not exist."}

The user appears to be logged (it can access logged pages) but the app does not work because the login token is not there, so he actually is not logged at all (I think this is what happening, not sure thou).

But then I hit F5 to reload the page or click in other link which the user must be logged, the user is redirected to Login page, and after log in everything works.

PS: I not using the version with the heartbeat disabled yet.

@timothyej
Copy link
Member

Thanks for reporting this. I will make sure to investigate it and I will let you know how it goes.

Best,
Timothy

@timothyej
Copy link
Member

I haven't been able to reproduce this issue. Could you try using the latest version and see if that solves your problem?

Thanks,
Timothy

@seifip
Copy link

seifip commented Jun 13, 2014

I'm using the PHP widget library and have a similar problem...

Every once in a while, refresh leads to Unable to authenticate as user. and the only fix is to clear cache and cookies and relogin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants