mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
fix(device-pairing): clean up push subscriptions on admin reset and share URL helpers
The admin password reset finds the admin case-insensitively and deletes the push subscriptions of the sessions it ends. The app re-sends its push subscription once per signed-in session so revoke reaches re-signed-in devices, and the upsert keeps the stored device name. Plain-HTTP and URL parsing checks are shared helpers.
This commit is contained in:
1 parent
cbe4f7ed9e
commit
6e398c4d40
21 files changed
+540
-85
No files matched your search
@@ -222,7 +222,7 @@ export class NotificationService {
|
||||
user_id = excluded.user_id,
|
||||
p256dh = excluded.p256dh,
|
||||
auth = excluded.auth,
|
||||
device_name = excluded.device_name,
|
||||
device_name = COALESCE(excluded.device_name, push_subscriptions.device_name),
|
||||
session_id = excluded.session_id,
|
||||
last_used_at = excluded.last_used_at`
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user