mirror of
https://github.com/versia-pub/server.git
synced 2025-12-08 09:18:19 +01:00
fix(api): 🐛 Switch base64 version to base64url in subscriptions
This commit is contained in:
parent
ea0afdaf22
commit
5d64ecd04f
|
|
@ -10,15 +10,15 @@ export const WebPushSubscriptionInput = z
|
||||||
}),
|
}),
|
||||||
keys: z
|
keys: z
|
||||||
.object({
|
.object({
|
||||||
p256dh: z.string().base64().openapi({
|
p256dh: z.string().base64url().openapi({
|
||||||
description:
|
description:
|
||||||
"User agent public key. Base64 encoded string of a public key from a ECDH keypair using the prime256v1 curve.",
|
"User agent public key. Base64url encoded string of a public key from a ECDH keypair using the prime256v1 curve.",
|
||||||
example:
|
example:
|
||||||
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEoKCJeHCy69ywHcb3dAR/T8Sud5ljSFHJkuiR6it1ycqAjGTe5F1oZ0ef5QiMX/zdQ+d4jSKiO7RztIz+o/eGuQ==",
|
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEoKCJeHCy69ywHcb3dAR/T8Sud5ljSFHJkuiR6it1ycqAjGTe5F1oZ0ef5QiMX/zdQ+d4jSKiO7RztIz+o/eGuQ==",
|
||||||
}),
|
}),
|
||||||
auth: z.string().base64().openapi({
|
auth: z.string().base64url().openapi({
|
||||||
description:
|
description:
|
||||||
"Auth secret. Base64 encoded string of 16 bytes of random data.",
|
"Auth secret. Base64url encoded string of 16 bytes of random data.",
|
||||||
example: "u67u09PXZW4ncK9l9mAXkA==",
|
example: "u67u09PXZW4ncK9l9mAXkA==",
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue