Skip to content

Edge case where user logs out, logs into another account, and creates an entry #52

@rdey0

Description

@rdey0
  • When a user logs out and logs into another account, the session data is not reset for the new user
  • This will trigger the journals screen to retrieve the id of the last opened journal (which is owned by the previous user) and query for it. Fortunately the query fails because said journal is not owned by the user
  • However, if a user creates a new entry, the new entry will be created under the other user's journal

Potential Solutions

  1. Hash the session storage key with the user's ID to facilitate the storage of info for multiple accounts on one device
  2. Clear out session storage info when a user logs out

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions