Authenticate sockets by header or one-time ticket instead of ?token=

This commit is contained in:
2026-10-07 08:58:22 +02:00
parent 094fed7cea
commit ed8aee2387
21 changed files with 336 additions and 44 deletions
+16
View File
@@ -3692,6 +3692,22 @@ export const ShareRequestSchema = {
title: 'ShareRequest'
} as const;
export const SocketTicketSchema = {
properties: {
ticket: {
type: 'string',
title: 'Ticket'
},
expires_in: {
type: 'number',
title: 'Expires In'
}
},
type: 'object',
required: ['ticket', 'expires_in'],
title: 'SocketTicket'
} as const;
export const StoredKeySchema = {
properties: {
key: {