Skip to content

Conversation

scopsy
Copy link
Contributor

@scopsy scopsy commented Oct 22, 2025

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Adds logic to detect and remove expired device tokens from subscribers when push notification errors indicate token expiration. Implements isTokenExpired in FcmPushProvider and updates the push use case to clean up tokens and invalidate cache accordingly.
Refactored webhook DTOs to provide more detailed error information for failed push messages, including token expiration status and device token. Updated push message sending logic to populate these fields and use MESSAGE_FAILED event type for webhook notifications.
@linear
Copy link

linear bot commented Oct 22, 2025

@netlify
Copy link

netlify bot commented Oct 22, 2025

Deploy Preview for dashboard-v2-novu-staging canceled.

Name Link
🔨 Latest commit 4a0e392
🔍 Latest deploy log https://app.netlify.com/projects/dashboard-v2-novu-staging/deploys/68f92fd1f6765900087d6bb9

@github-actions github-actions bot changed the title feat(worker): device token invalidation logic fixes NV-6743 feat(worker): device token invalidation logic fixes NV-6743 fixes NV-6743 Oct 22, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 22, 2025

Open in StackBlitz

npm i https://pkg.pr.new/novuhq/novu/@novu/providers@9389
npm i https://pkg.pr.new/novuhq/novu/@novu/stateless@9389

commit: 4a0e392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant