my-kaiqiuwang/package.json
kyuuseiryuu 9c9b3735cb feat: migrate user fav system from session aud to Logto sub
- Update database schema to rename `UserFav` to `LogtoUserFav` with clearer field names (`logto_uid`, `kaiqiu_uid`).
- Bump `jose` dependency to v6.2.1 for improved JWT verification.
- Configure `@logto/react` to request the correct resource token for API access.
- Implement token verification on the server side using `jose` and `jwtVerify`.
- Update API routes (`/api/fav`) to extract the user ID from the verified JWT `sub` claim instead of the URL `aud` parameter.
- Refactor frontend components (`FavButton`, `FavePlayersPage`) to use `useAuthHeaders` for fetching auth headers instead of manual token claims extraction.
- Clean up unused migration and DAO functions related to the old `aud`-based logic.
2026-03-16 12:45:12 +09:00

38 lines
1.0 KiB
JSON

{
"name": "my-kaiqiuwang",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "bun --hot src/index.tsx",
"build": "bun build ./src/index.html --outdir=dist --sourcemap --target=browser --minify --define:process.env.NODE_ENV='\"production\"' --env='BUN_PUBLIC_*'",
"start": "NODE_ENV=production bun src/index.tsx"
},
"dependencies": {
"@ant-design/icons": "^6.1.0",
"@logto/react": "^4.0.13",
"@prisma/adapter-mariadb": "^7.4.2",
"@prisma/client": "^7.4.2",
"ahooks": "^3.9.6",
"antd": "^6.3.2",
"cheerio": "^1.2.0",
"dayjs": "^1.11.19",
"ics": "^3.8.1",
"jose": "^6.2.1",
"lodash": "^4.17.23",
"mariadb": "^3.5.2",
"react": "^19",
"react-dom": "^19",
"react-router": "^7.13.0",
"styled-components": "^6.3.8",
"zustand": "^5.0.10"
},
"devDependencies": {
"@types/bun": "latest",
"@types/lodash": "^4.17.23",
"@types/react": "^19",
"@types/react-dom": "^19",
"prisma": "^7.4.2"
}
}