Skip to content

Each login triggers a store delete and insert #269

@jimchamp

Description

@jimchamp

On login, the associated account data is deleted from the store, then a new account object is written to the store. The only field that changes in the object is the last_login date.

This can be confirmed easily with the default openlibrary account in any Open Library local instance:

docker compose exec db bash
psql -Uopenlibrary
select store_id from store_index where type = 'account' and name = 'username' and value = 'openlibrary';

# Note the `store_id` from the result set, logout, login again, then re-run the query.
# The `store_id` will be different.

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