Spaces:
Sleeping
Sleeping
Commit History
-
remember me
9b51d59
-
pet and guest api changes
b1b7430
-
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 -
feat(jwt): add logging to jwt token operations
Add detailed logging for token creation, verification and decoding operations Log minimal sensitive information while providing useful debugging contexted83da2 -
fix(user_service): correct token logging by removing truncation
Update token logging to show full tokens instead of truncated versions for better debugging. Also add commented debug line in jwt.py for potential future use.8a17472 -
refactor(logging): centralize logging configuration in utils
Move logging setup to a dedicated utility module to avoid duplicate configuration and improve consistency across the application. The new setup prevents duplicate logs by disabling propagation to root logger.05dc4f5
-
feat(oauth): enhance google oauth to support access tokens and user existence check
add support for google oauth access tokens alongside id tokens implement user existence check during oauth login add user_exists field to token response schema update token validation logic in social security modelc269572
-
refactor(user): rename user_id to customer_id across all modules
Update all schema definitions, models, services, routers and utility functions to use customer_id instead of user_id for consistency with business terminology. This includes changes to JWT payloads, database queries, API endpoints and related documentation strings. The change affects profile, pet, guest, wallet and address related functionality, ensuring all references to user identification use the customer_id field name. This maintains consistency with the domain model where users are referred to as customers in the business context. Update all test cases and API documentation to reflect this naming change. Ensure backward compatibility is maintained where needed through API versioning or migration scripts.a9ccd3b -
feat(auth): implement refresh token functionality
- Add create_refresh_token utility function with 7-day expiration - Update TokenResponse schema to include refresh_token field - Modify login and registration endpoints to return refresh tokens - Add new /refresh-token endpoint for token rotation - Include user_exists flag in OTPSendResponse for better UX4ddb8b3
-
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
-
feat(auth): add phone number support for authentication
- Implement phone number validation utilities - Add unified login input handling for email/phone - Update schemas with phone validation - Modify services to support phone authentication - Add comprehensive tests for phone functionality91dc3b5
-
feat(profile): implement jwt-protected profile endpoint with service layer
- Add JWT authentication middleware with token verification - Create profile service to fetch customer data from database - Implement error handling and logging for profile operations2e26396 -
first
981259a
-
Refactor OTP handling to continue with email fallback on SMS failure; add timeout parameter to email OTP function and improve SMS client initialization
9e0fc4a -
Add Twilio and SMTP configuration to .env; implement email OTP sending with connection setup
3542545 -
Refactor user model and service; implement OAuth and OTP login features, enhance JWT handling, and update requirements
8ee3f02
-
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