KI-AGENT: Zentralen Push-Server Stack ergänzen

This commit is contained in:
2026-05-22 16:53:27 +02:00
parent 19bab852de
commit 5a4de421ce
43 changed files with 17731 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { randomBytes } from "node:crypto";
export function createPublicId(prefix: string): string {
return `${prefix}_${randomBytes(16).toString("base64url")}`;
}
export function createClientSecret(): string {
return `fps_${randomBytes(32).toString("base64url")}`;
}
export function previewSecret(secret: string): string {
return `${secret.slice(0, 7)}...${secret.slice(-6)}`;
}