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
-
Merge remote-tracking branch 'origin/feature/favorite-changes'
f5367b2 -
updated schema for adding favorite
f275e24
-
Merge branch 'feature/favorite-changes'
ac288b5 -
merchant favorite changes
0a50ace
-
increasing jwt expiry time
6f762a2
-
feat(schemas): add validators for empty string to none conversion
Add pre-validators to convert empty strings to None for optional fields in GuestCreateRequest and GuestUpdateRequest. Also add date coercion for date_of_birth field to handle various input formats.07b921c
-
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
-
date format changes for dob
3866b57
-
guest data of birth format issue while updating
ee0ef33 -
pet data format issue
b3ac247
-
customer id changes
798fa90
-
pet and guest api changes
b1b7430
-
address management api changes
f58c397
-
fix(user_service): validate oauth token and provider fields
Add validation to ensure oauth_token and provider are present when using OAuth mode to prevent potential authentication issuesd151545 -
fix: remove redundant oauth token validation check
The validation is already handled by the OAuth provider's token verification, making this check redundantf5c15eb -
refactor(user_router): improve google oauth token verification logic
Move client id check inside JWT verification branch since it's only needed there Extract token type detection and clean up access token handlingd2a666f -
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 -
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 -
token logger
90064f2 -
Delete .env
Verified signatureee3366e -
chore: add .env to gitignore and update JWT secret key
Add .env file to gitignore to prevent accidental commits of sensitive data Update JWT_SECRET_KEY in .env file for enhanced security5812136
-
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(auth): simplify jwt token payload structure
Remove redundant fields from JWT token payload and standardize on using 'sub' claim for user identificationa524413
-
feat(user_service): add more user details to auth response
Include additional user information in authentication response to support client requirements2f149b5
-
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 -
docs: add README.md with project overview and features
e35abc2 -
chore: remove duplicate httpx entry in requirements.txt
8ae209b -
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(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 -
refactor(user_schema): remove deprecated otpIdentifer and add mode validation
Add validation for required fields based on registration mode (OTP/OAuth) and remove deprecated otpIdentifer fieldfbc46d2 -
feat(auth): enhance jwt token response with additional user data
Include more user information in the JWT token response to provide client applications with necessary user details like profile picture, auth method, and provider information.918926f -
chore: update redis cache URI to cloud instance
6beca64 -
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 -
Update .env
Verified signature05a9234 -
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 -
test: use hardcoded OTP and remove notification code for testing
Replace secure OTP generation with hardcoded value and remove OTP notification code to simplify testing8c83af2
-
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