支持速率限制

然后把oauth单独放一个页面
一些UI调整
This commit is contained in:
2025-07-30 12:19:38 -07:00
parent b965f90c97
commit 9262ef4076
11 changed files with 745 additions and 404 deletions

View File

@ -10,33 +10,42 @@
"test:oauth": "node test-oauth.js",
"test:oauth-flow": "node test-oauth-flow.js",
"test:redirect-uri": "node test-redirect-uri.js",
"test:rate-limit": "node test-rate-limit.js",
"dev:frontend": "vite",
"build:frontend": "vite build",
"preview:frontend": "vite preview"
},
"dependencies": {
"express": "^4.18.2",
"pg": "^8.11.3",
"bcryptjs": "^2.4.3",
"jsonwebtoken": "^9.0.2",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express-validator": "^7.0.1"
"express": "^4.18.2",
"express-rate-limit": "^7.1.5",
"express-validator": "^7.0.1",
"jsonwebtoken": "^9.0.2",
"pg": "^8.11.3"
},
"devDependencies": {
"nodemon": "^3.0.1",
"axios": "^1.5.0",
"@vitejs/plugin-react": "^4.0.0",
"vite": "^4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@mui/material": "^5.14.0",
"@mui/icons-material": "^5.14.0",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"react-router-dom": "^6.15.0"
"@mui/icons-material": "^5.14.0",
"@mui/material": "^5.14.0",
"@vitejs/plugin-react": "^4.0.0",
"axios": "^1.5.0",
"nodemon": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.15.0",
"vite": "^4.4.0"
},
"keywords": ["auth", "api", "postgresql", "login", "register", "oauth"],
"keywords": [
"auth",
"api",
"postgresql",
"login",
"register",
"oauth"
],
"author": "",
"license": "MIT"
}