Spaces:
Sleeping
Sleeping
Commit History
-
remember me
9b51d59
-
increasing jwt expiry time
6f762a2
-
feat(oauth): add local testing mode to bypass external verification
Implement OAUTH_TEST_MODE flag to facilitate local development by: - Adding config flag to enable test mode - Modifying token validation to accept any non-empty string in test mode - Returning synthetic user data when test mode is active - Enhancing OAuth login response with additional user details2fc2b48
-
refactor(jwt): unify jwt configuration and token expiration handling
- Consolidate JWT configuration in settings with unified environment variables - Remove hardcoded expiration values and use settings defaults - Add backward compatibility for legacy JWT config variables - Update token generation to use new configuration approach975cfc8
-
refactor(cache): improve redis client initialization with better error handling
Add connection timeout settings and fallback mechanism for authentication failures Move client creation to separate function for lazy initialization6e5d529 -
fix(cache): handle empty redis password and improve error logging
Add check for empty password string and enhance logging to distinguish between authenticated and unauthenticated connections. Also add catch-all exception handler for unexpected errors.6d5564a -
fix(cache): handle redis connection with optional password
Support both authenticated and unauthenticated Redis connections by checking if password is provided in settings. This makes the cache client more flexible for different deployment environments.a63007f
-
feat(auth): implement enhanced social login with security middleware
- Add Facebook OAuth support with token verification - Implement rate limiting and IP-based security for OAuth logins - Create account management endpoints for social account linking - Add security middleware for request logging and device tracking - Enhance OTP verification with account locking and rate limiting - Update user schemas with social account and security fieldsd846c9a
-
Add initial implementation of User Management Service
- Create folder structure and necessary files for the service - Implement FastAPI application with user authentication and OTP functionality - Set up MongoDB and Redis configurations - Add user and OTP models, along with services for user registration and login - Include utility functions for sending SMS and email OTPs - Define Pydantic schemas for request validation - Update requirements.txt with necessary dependenciesb407a42