feat: 更新认证逻辑,支持通过openid查找或创建用户,并调整JWT负载字段

This commit is contained in:
2026-05-27 01:49:23 +08:00
parent 3506731061
commit 80904e65d8
6 changed files with 641 additions and 16 deletions

View File

@@ -66,6 +66,7 @@
},
"devDependencies": {
"@tailwindcss/vite": "4.1.12",
"@types/node": "^22.0.0",
"@vitejs/plugin-basic-ssl": "^2.2.0",
"@vitejs/plugin-react": "4.7.0",
"tailwindcss": "4.1.12",
@@ -3349,6 +3350,16 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "22.19.19",
"resolved": "https://registry.npmmirror.com/@types/node/-/node-22.19.19.tgz",
"integrity": "sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew==",
"devOptional": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
},
"node_modules/@types/parse-json": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
@@ -5313,6 +5324,13 @@
"url": "https://github.com/sponsors/Wombosvideo"
}
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"devOptional": true,
"license": "MIT"
},
"node_modules/update-browserslist-db": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",