Skip to content

Intended use of keys #64

Discussion options

You must be logged in to vote

So at first glance, this sounds like you may have either registered a Subscriber under a different key configuration with a different key, or you are using your own type that conforms to SubscriberProtocol and passed in a different key ID. This is an issue because the signatures attached to that subscriber are only valid for the key that was used at registration, so it would fail even if you bypassed this initial check.

I would make sure that:

  • The VAPID key (and configuration, if you can) is generated exactly once and persisted for all server instances across reboots.
  • Clearing out old subscribers you used during development whose keys don't match up. (You can do this by catching the Conf…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@christophhagen
Comment options

@dimitribouniol
Comment options

Answer selected by christophhagen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #63 on February 17, 2025 10:08.