feat: add scope to push notifications
This commit is contained in:
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;
|
endpoint: string;
|
||||||
p256dh: string;
|
p256dh: string;
|
||||||
auth: string;
|
auth: string;
|
||||||
|
scope: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class SnortApi {
|
export default class SnortApi {
|
||||||
|
@ -141,6 +141,7 @@ const AccountHeader = () => {
|
|||||||
endpoint: sub.endpoint,
|
endpoint: sub.endpoint,
|
||||||
p256dh: base64.encode(new Uint8Array(unwrap(sub.getKey("p256dh")))),
|
p256dh: base64.encode(new Uint8Array(unwrap(sub.getKey("p256dh")))),
|
||||||
auth: base64.encode(new Uint8Array(unwrap(sub.getKey("auth")))),
|
auth: base64.encode(new Uint8Array(unwrap(sub.getKey("auth")))),
|
||||||
|
scope: `${location.protocol}//${location.hostname}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user