Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/sw-8.js Secret

Created December 15, 2017 01:59
Show Gist options
  • Save kypflug/d431c41f3b39e0e4e89e05aa59ecbaa4 to your computer and use it in GitHub Desktop.
Save kypflug/d431c41f3b39e0e4e89e05aa59ecbaa4 to your computer and use it in GitHub Desktop.
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