We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790ecf4 commit e21bb46Copy full SHA for e21bb46
src/utils/pushSubscriptionHelpers.ts
@@ -36,14 +36,7 @@ export const verifyPushSubscription = async (
36
const { subscription } = await getPushSubscription();
37
38
if (!subscription) {
39
- try {
40
- const { data: backendSubscriptions } = await axios.get<
41
- UserPushSubscription[]
42
- >(`/api/v1/user/${userId}/pushSubscriptions`);
43
- return backendSubscriptions.length > 0;
44
- } catch {
45
- return false;
46
- }
+ return false;
47
}
48
49
const appServerKey = subscription.options?.applicationServerKey;
0 commit comments