fix(web): polyfill crypto.randomUUID for non-secure HTTP contexts by chirino · Pull Request #666 · pingdotgg/t3code
Replace direct crypto.randomUUID() calls with a randomUUID() helper in utils.ts that falls back to crypto.getRandomValues() when the browser is not in a secure context (e.g. plain HTTP on a non-localhost address). Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
- Replace manual UUID byte formatting fallback in `apps/web/src/lib/utils.ts` - Use `Effect.runSync(Random.nextUUIDv4)` when `crypto.randomUUID` is unavailable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters