webpush: enforce endpoint as a URL

This commit is contained in:
Alex Gleason
2024-10-12 22:58:29 -05:00
parent 3fa12e3ba5
commit b6925a5491

View File

@@ -9,7 +9,7 @@ import { getTokenHash } from '@/utils/auth.ts';
const pushSubscribeSchema = z.object({
subscription: z.object({
endpoint: z.string(),
endpoint: z.string().url(),
keys: z.object({
p256dh: z.string(),
auth: z.string(),