Skip to content

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

Open
@SpiderBro

Description

@SpiderBro

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();
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions