Commit a77333fc authored by Efe's avatar Efe
Browse files

Improve persistent auth proof cookie system with comprehensive logging

- Add persistent auth_proof cookie storing uuid, username, loginType, authProof, and timestamp
- Implement UUID-based session tracking using loginChallenge from blockchain transactions
- Consolidate login/logout handling in unified log_account API endpoints
- Add page visit logging via Next.js middleware for all application routes
- Centralize common functions in @hive/middleware package for maintainability
- Implement conditional WASM loading to avoid Edge Runtime compatibility issues
- Standardize IP address extraction across all logging functions
- Preserve cookie on logout (username/loginType set to null) for IP/browser tracking
- Filter out static assets and API routes from page visit logging
- Add comprehensive route logging including sub-routes and .html pages
- Remove code duplication between blog and wallet apps
- Ensure consistent UUID logging across login, logout, and page visits
- Fix Edge Runtime compatibility by removing top-level await and WASM dependencies
- Add next-transpile-modules configuration for workspace package support
parent eda8f601
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment