Use a Token authentication module without a database. There's an example on a wiki.
These tokens, unlike those that you find in letters with password recovery, for example, are permanent and are stored in the database. They behave by default as service API keys, which means that they do not hold the user in a session and must be provided for every request.
So that they truly subscribe users to:
config.stateless_token = false
source
share