feat(auth): integrate Firebase authentication and update auth flow

- Added Firebase authentication methods for login, signup, and password reset.
- Replaced mock user database with Firebase user management.
- Updated auth store to handle Firebase user state and authentication.
- Implemented middleware for Firebase authentication in RPC routes.
- Enhanced error handling and user feedback with toast notifications.
- Added Toast component for user notifications in the UI.
- Updated API client to include authorization headers for authenticated requests.
- Removed unused CSRF token logic and related code.
This commit is contained in:
2026-01-16 02:55:41 +07:00
parent a6f5ba8c90
commit 02247f9018
16 changed files with 921 additions and 553 deletions

View File

@@ -17,15 +17,17 @@
"@primeuix/themes": "^2.0.2",
"@primevue/forms": "^4.5.4",
"@unhead/vue": "^2.1.1",
"is-mobile": "^5.0.0",
"@vueuse/core": "^14.1.0",
"clsx": "^2.1.1",
"firebase": "^12.8.0",
"firebase-admin": "^13.6.0",
"hono": "^4.11.3",
"is-mobile": "^5.0.0",
"pinia": "^3.0.4",
"primevue": "^4.5.4",
"tailwind-merge": "^3.4.0",
"vue": "^3.5.26",
"vue-router": "^4.6.4",
"tailwind-merge": "^3.4.0",
"zod": "^4.3.2"
},
"devDependencies": {
@@ -41,4 +43,4 @@
"vite-ssr-components": "^0.5.2",
"wrangler": "^4.54.0"
}
}
}