fix: 解决部署问题

This commit is contained in:
2025-02-24 20:27:39 +08:00
parent 1e9f209803
commit 61bf2cc73b
13 changed files with 53 additions and 84 deletions

View File

@@ -0,0 +1,11 @@
import * as nanoid from 'nanoid';
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
//HMAC-256推荐 32 字节。
// HMAC-512推荐 64 字节。
// jsonwentoken 默认使用 HMAC-256 算法,生成 32 字节的 token。
const v = nanoid.customAlphabet(alphabet, 32);
console.log('v', v());