6
web/src/lib/client-id.ts
Normal file
6
web/src/lib/client-id.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
export function createClientId() {
|
||||
// randomUUID 在 HTTP 内网地址下不可用;nanoid 依赖仍可用的 getRandomValues。
|
||||
return nanoid();
|
||||
}
|
||||
Reference in New Issue
Block a user