Open
Description
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:
I am using the suggested code from the post above:
User::onUnauthorized(function($sender, $call_context, $error){
header("Location: /login.php");
die();
});
Metadata
Metadata
Assignees
Labels
No labels