()
| 70 | * Returns a 64-character hex string (256-bit). |
| 71 | */ |
| 72 | export function generateRandomApiKey() { |
| 73 | return randomBytes(32).toString("hex"); |
| 74 | } |
| 75 | |
| 76 | // Where the auto-generated API key is persisted so it stays stable across |
| 77 | // `npm run dev` restarts. Keeping the key stable means the value baked into |
no outgoing calls
no test coverage detected