fix(webpush): remove backend checks

Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
0xsysr3ll
2025-12-07 20:32:56 +01:00
parent 20d53a6a3e
commit be5bdc9975

View File

@@ -36,14 +36,7 @@ export const verifyPushSubscription = async (
const { subscription } = await getPushSubscription();
if (!subscription) {
try {
const { data: backendSubscriptions } = await axios.get<
UserPushSubscription[]
>(`/api/v1/user/${userId}/pushSubscriptions`);
return backendSubscriptions.length > 0;
} catch {
return false;
}
return false;
}
const appServerKey = subscription.options?.applicationServerKey;