mix web_push.gen.vapid (web_push v0.1.0)

Copy Markdown View Source

Generates a VAPID (P-256) keypair for Web Push.

mix web_push.gen.vapid

Prints the keys ready to paste into config or to export as environment variables. The public key (65-byte uncompressed point, URL-safe base64 without padding) is also the value the browser passes to pushManager.subscribe({ applicationServerKey }).