status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
301 stars 79 forks source link

[Browser plugin connector] Add expiration date to each session #16752

Open alexjba opened 1 week ago

alexjba commented 1 week ago

Description

Summary: Currently the dapp sessions are stored forever in the db and this means that each dapp session will live forever. This task proposes to add a session expiration date of 7 days for each dApp session. This will be inline with the Wallet Connect behavior.

Acceptance Criteria

  1. On session establishing phase the current timestamp is stored in the DB
  2. On DB migration, all previous sessions will have the same expiration date as the new sessions
  3. After the expiration date, the session is rejected and removed from DB
  4. The user will be notified that the dApp has expired