Point bridge download to GitHub

This commit is contained in:
Remi
2025-09-24 00:01:00 +02:00
parent 4b859f6998
commit b756bf2ea6
7 changed files with 709 additions and 0 deletions

14
server/utils/bridge.ts Normal file
View File

@@ -0,0 +1,14 @@
export function normalizeBridgeToken(input: unknown) {
if (typeof input !== 'string') {
return null
}
const token = input.trim()
if (!token) {
return null
}
if (token.length < 8 || token.length > 256) {
return null
}
return token
}