feat: 完成用户鉴权相关api

This commit is contained in:
539943419 committed 2025-01-13 17:22:52 +08:00
1 parent 79cc9c34d6
commit 4c69f57aaa
22 files changed
+903 -68

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { sign } from 'jsonwebtoken'
import fs from 'fs'
import path from 'path'
const getKey = cacheRes(() => fs.readFileSync(path.join(process.cwd(), 'userData/key.txt'), 'utf-8') as string)
export default getKey