Spaces:
Sleeping
Sleeping
Commit History
-
remember me
9b51d59
-
updated schema for adding favorite
f275e24
-
merchant favorite changes
0a50ace
-
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(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 -
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): 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
-
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 -
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 -
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 -
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
-
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 -
test(user_service): use dummy otp for testing purposes
98c9ded -
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
-
Add name field to TokenResponse for OTP login response
5f27f7b
-
Fix mobile field reference in user model and update logging level for OTP handling
cb59048 -
Add logging for user registration and improve OTP verification handling
58afdfa -
Add debug logging for user registration identifier; check for missing otpIdentifier
a299965 -
Refactor OTP registration logic to set identifier and user_id before checks; improve error handling for missing OTP and identifier
8a6e421 -
Add otpIdentifier to UserRegisterRequest and improve OTP registration handling
a389275
-
otp
aaf7970 -
Ensure OTP storage succeeds even if SMS notification fails; clarify comments for better understanding
d3cdf04 -
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