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

Fatal error 'provided token does not exist' after user timeout #7

Open
SpiderBro opened this issue Nov 9, 2014 · 0 comments
Open

Comments

@SpiderBro
Copy link

When a session times out, I'm getting the error below:

Fatal error: Uncaught exception 'UserApp\Exceptions\ServiceException' with message 'Unable to authenticate as user. Provided token does not exist.' in /vendor/userapp/userapp/lib/UserApp/Client.php:97 Stack trace: #0 /vendor/userapp/userapp/lib/UserApp/ClientProxy.php(47): UserApp\Client->call(1, 'user', 'get', Array) #1 /vendor/userapp/widget/lib/UserApp/Widget/User.php(123): UserApp\ClientProxy->__call('get', Array) #2 /vendor/userapp/widget/lib/UserApp/Widget/User.php(123): UserApp\ClientProxy->get() #3 /vendor/userapp/widget/lib/UserApp/Widget/User.php(31): UserApp\Widget\User->load() #4 /inc/header.php(11): UserApp\Widget\User->__get('first_name') #5 /app/index.php(2): require_once('/app/...') #6 {main} thrown in /vendor/userapp/userapp/lib/UserApp/Client.php on line 97

It seems that there is some issues related to tokens expiring but checks for authentication still returning true. Possibly related:

#1

I am using the suggested code from the post above:

User::onUnauthorized(function($sender, $call_context, $error){
    header("Location: /login.php");
    die();
});
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

1 participant