summaryrefslogtreecommitdiff
path: root/web/test/task-panel-summary.test.mjs
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-17 08:04:52 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-18 07:54:48 +0000
commit1d550c1196ea836e0a0f798ba0127c1086f5f963 (patch)
tree9bc4a9d8934b0e993e2802528551d2b6b013a799 /web/test/task-panel-summary.test.mjs
parentb5df9cadd7b8a275b8688ee8fb957142536fd26a (diff)
fix: unsubscribe stale push subscription before re-subscribing
When the VAPID key changes (e.g. after the key-swap fix), the browser's cached PushSubscription was created with the old key. Calling PushManager.subscribe() with a different applicationServerKey then throws "The provided applicationServerKey is not valid". Fix by calling getSubscription()/unsubscribe() before subscribe() so any stale subscription is cleared. Adds web test covering both the stale and fresh subscription paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/test/task-panel-summary.test.mjs')
0 files changed, 0 insertions, 0 deletions