Skip to content

possibly auth token expire? all actions would fail after server up for some time #113

@pessimo

Description

@pessimo

I got a server with fastapi and start it in docker.
In my project, I would init a client and do an admin auth when server is up

# in common.py file
pb = PB('https://xxxxxxxxxxxxx')
user_data = pb.admins.auth_with_password('xxxxxxxx', 'xxxxxxxx')

and everytime i need to use pb client, I would import user_data from common.py.

but after a specific amount of time(currently i have no idea how long it would be), all the pocketbase actions (like auth、query、update) would fail. And if I restart the server container, everything will be fine.

could anyone provide some idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions