mix pushx.vapid (PushX v0.15.0)

Copy Markdown View Source

Generates a VAPID (RFC 8292) application-server key pair for Web Push and prints it with the config and front-end snippets that use it:

$ mix pushx.vapid

Run it once per application (or per tenant for named instances) and keep the private key secret — rotating it invalidates every existing browser subscription. Keys are base64url, the format browsers and the web-push CLI use.