Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/sw-8.js Secret

Created December 15, 2017 01:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
var webpush = require('web-push');
var vapidKeys = { publicKey: 'BL6As_YCGHPf3ZeDbklyVxgvJVb4Tr5qjZFS-J7XzkT5zQNghd9iUBUsqSlVO5znwTsZZrEOx8JFRDJc1JmkymA',
privateKey: 'GnMVDgbtZrqs7tgKEkJaV5aZF8cVjoq7Ncz_TEVI_lo'};
webpush.setVapidDetails(
'mailto:myaccount@hotmail.com',
vapidKeys.publicKey,
vapidKeys.privateKey
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment