()
| 23 | import { setupMonitoring } from "./monitoring-setup"; |
| 24 | |
| 25 | const generateToken = () => { |
| 26 | const array = new Uint8Array(64); |
| 27 | crypto.getRandomValues(array); |
| 28 | return Array.from(array, (byte) => byte.toString(16).padStart(2, "0")).join( |
| 29 | "", |
| 30 | ); |
| 31 | }; |
| 32 | |
| 33 | export const slugify = (text: string | undefined) => { |
| 34 | if (!text) { |