mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-23 14:06:58 +01:00
webpush: enforce endpoint as a URL
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user