You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,8 +71,7 @@ There are several good examples and tutorials on the web:
71
71
* you may want to take a look at my own implementation: [sw.js](https://github.com/Minishlink/physbook/blob/2ed8b9a8a217446c9747e9191a50d6312651125d/web/service-worker.js) and [app.js](https://github.com/Minishlink/physbook/blob/d6855ca8f485556ab2ee5c047688fbf745367045/app/Resources/public/js/app.js)
72
72
73
73
### Authentication
74
-
Browsers need to verify your identity. At the moment, some browsers don't force you but you'll have to do it in the future, so why not now?
75
-
A standard called VAPID can authenticate you for all browsers. You'll need to create and provide a public and private key for your server.
74
+
Browsers need to verify your identity. A standard called VAPID can authenticate you for all browsers. You'll need to create and provide a public and private key for your server.
76
75
77
76
You can specify your authentication details when instantiating WebPush:
78
77
```php
@@ -86,8 +85,8 @@ $auth = array(
86
85
'GCM' => 'MY_GCM_API_KEY', // deprecated and optional, it's here only for compatibility reasons
87
86
'VAPID' => array(
88
87
'subject' => 'mailto:[email protected]', // can be a mailto: or your website address
89
-
'publicKey' => '88 chars', // uncompressed public key P-256
90
-
'privateKey' => '44 chars', // in fact the secret multiplier of the private key
88
+
'publicKey' => '~88 chars', // uncompressed public key P-256 encoded in Base64-URL
89
+
'privateKey' => '~44 chars', // in fact the secret multiplier of the private key encoded in Base64-URL
0 commit comments