feat: add scope to push notifications
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kieran 2023-10-20 11:57:56 +01:00
parent 15795d442f
commit bee0cc1188
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export interface PushNotifications {
endpoint: string;
p256dh: string;
auth: string;
scope: string;
}
export default class SnortApi {

View File

@ -141,6 +141,7 @@ const AccountHeader = () => {
endpoint: sub.endpoint,
p256dh: base64.encode(new Uint8Array(unwrap(sub.getKey("p256dh")))),
auth: base64.encode(new Uint8Array(unwrap(sub.getKey("auth")))),
scope: `${location.protocol}//${location.hostname}`
});
}
}