Spaces:
Sleeping
Sleeping
Commit History
-
remember me
9b51d59
-
Merge remote-tracking branch 'origin/feature/review-changes'
64d7d33
-
fix(favorite_model): correct string interpolation syntax in logger statements
d30cd23
-
review api changes
aedd440
-
updated schema for adding favorite
f275e24
-
merchant favorite changes
0a50ace
-
fix(guest_model): sanitize guest data before MongoDB writes
Add data sanitization step using prepare_for_db() function before all MongoDB update operations to ensure proper data format and prevent potential issues with date/time fieldscd02845 -
fix(pet_model): sanitize pet data before MongoDB update
Add data sanitization step using prepare_for_db function before updating pets in MongoDB to ensure proper data format405aa89 -
feat(profiles): add default pet/guest functionality and refactor address model
Implement default pet and guest selection with new endpoints and schema fields Refactor address model to use embedded documents under customer Remove contact fields from address schema and simplify validation Update all related routers and models to support new embedded structure0f81784
-
guest data of birth format issue while updating
ee0ef33 -
pet data format issue
b3ac247
-
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(logging): change debug to info level for operational logs
Standardize logging level to INFO across application components to ensure important operational logs are captured in production. This provides better visibility into system behavior while reducing noise from debug logs.df8187a
-
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(favorites): add favorites feature for merchants
implement full CRUD operations for user favorites including: - add/remove merchants to favorites - list favorites with pagination - check favorite status - update favorite notes - get favorite detailsf36ca66
-
feat: add wallet, address, pet and guest management features
- Add new routers for wallet, address, pet and guest management - Implement models and schemas for each feature - Add CRUD operations for wallet transactions, addresses, pets and guests - Include validation and error handling for all new features82a6cc5 -
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(logging): add comprehensive logging across application layers
Implement detailed logging in models, services, and routers to improve debugging and monitoring Configure logging setup in app.py with appropriate log levels and handlers Add error handling with logging for critical operations in user flowsfe2f3e5
-
Fix mobile field reference in user model and update logging level for OTP handling
cb59048
-
otp
47487e3 -
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