Skip to content

Conversation

@iMattPro
Copy link
Contributor

@iMattPro iMattPro commented Jan 26, 2026

To address edge cases where a user's subscription is no longer authorized:

Unable to send Web Push: 
Client error: POST https://wns2-db5p.notify.windows.com/w/?token=BQY...%3d
resulted in a 401 Unauthorized response

This can occur when:

  • The user revoked notification permission by disabling or blocking notifications for the site
  • The subscription expired or was invalidated, Edge periodically rotates or invalidates push tokens, OS updates can do this, Browser profile resets can do this
  • The user cleared browser data
  • The device or Edge profile changed

In these cases, we need to treat the subscription as dead and remove it from the database.

@iMattPro iMattPro requested a review from rxu January 26, 2026 16:57
@iMattPro iMattPro merged commit f07385d into phpbb-extensions:main Jan 29, 2026
33 checks passed
@iMattPro iMattPro deleted the 401-subs branch January 29, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants