feat: add scope to push notifications
This commit is contained in:
parent
15795d442f
commit
bee0cc1188
1
packages/app/src/External/SnortApi.ts
vendored
1
packages/app/src/External/SnortApi.ts
vendored
@ -51,6 +51,7 @@ export interface PushNotifications {
|
||||
endpoint: string;
|
||||
p256dh: string;
|
||||
auth: string;
|
||||
scope: string;
|
||||
}
|
||||
|
||||
export default class SnortApi {
|
||||
|
@ -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}`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user