Commit Graph

36 Commits

Author SHA1 Message Date
Rempacious
e98edd6b93 fix: improve email typing with verification and remove example accounts file 2025-12-09 14:45:05 +08:00
b783f7c1fa feat: implement HumanTyping module to enhance typing simulation and avoid bot detection 2025-12-06 15:02:08 +01:00
38d9f1e48d fix: update types for heartbeat interval and constructor logger in DashboardServer and QueryDiversityEngine 2025-12-06 14:42:30 +01:00
76ed1ca9a6 feat: add password option selectors and improve password link handling in login flow 2025-12-06 13:52:52 +01:00
7ca720f8c0 feat: Implement security handling for login process
- Added PasskeyHandler to manage passkey prompts and interactions.
- Introduced RecoveryHandler for handling recovery email mismatches.
- Created SecurityDetector to identify sign-in blocks and account locks.
- Developed SecurityUtils for incident reporting and documentation access.
- Implemented TotpHandler for managing two-factor authentication (2FA) processes.
- Defined SecurityIncident type for structured incident reporting.
2025-11-21 07:40:57 +01:00
4bc44917e2 Fix 2025-11-15 13:52:37 +01:00
7df55be0df fix: Clean up whitespace and improve readability in login flow logic 2025-11-14 20:57:13 +01:00
cbd05d128e fix: Improve error handling and logging across multiple modules; enhance compatibility for legacy formats 2025-11-14 20:56:48 +01:00
4c71e603ca fix: Improve error handling and retry logic for OAuth token exchange; update session file paths to use process.cwd() 2025-11-14 08:04:46 +01:00
2959fc8c73 Feature: Improved handling of wait times for page checks and reloads, using a 10s timeout for slower networks 2025-11-13 14:37:17 +01:00
53fe16b1cc feat: Implement smart waiting utilities for improved page readiness and element detection
- Added `waitForPageReady` and `waitForElementSmart` functions to replace fixed timeouts with intelligent checks.
- Updated various parts of the codebase to utilize the new smart wait functions, enhancing performance and reliability.
- Improved logging for page readiness and element detection.
- Refactored login and browser functions to reduce unnecessary waits and enhance user experience.
- Fixed selector for MORE_ACTIVITIES to avoid strict mode violations.
- Added unit tests for smart wait utilities to ensure functionality and performance.
2025-11-11 14:20:37 +01:00
89bc226d6b New structure 2025-11-11 12:59:42 +01:00
e9a1e2dbcf Clean up and fix 2025-11-10 22:11:52 +01:00
5f9aafdd0f feat: Centralize timeout constants and improve navigation error handling in Login flow 2025-11-09 18:58:25 +01:00
3a3f416d92 feat: Centralize timeout constants and improve logging validation across modules 2025-11-09 18:15:01 +01:00
9fb5911fa2 feat: Centralize browser instance creation to eliminate duplication in Desktop and Mobile flows
fix: Update error message for HTTP 400 checks to English
refactor: Improve logging for network idle wait timeout in Workers
fix: Initialize lastError in Axios client to prevent undefined errors
chore: Update tsconfig to include path mappings for better module resolution
2025-11-09 17:56:46 +01:00
5e322af2c0 Fix: Enhance error handling and timeout management across various modules; improve validation and documentation 2025-11-08 18:52:31 +01:00
1ff521f505 Refactor imports and improve error handling across multiple files for better maintainability and clarity 2025-11-08 10:55:51 +01:00
555efa1db0 Improve handling of navigation errors in the connection flow: implement recovery attempts for navigation errors and proxy connection failures. 2025-11-06 22:34:06 +01:00
693246c2d5 Features: Improved handling of navigation errors and automatic updates, optimized wait times, and cron job configuration 2025-11-05 21:03:48 +01:00
4e8bd59ff4 feat: Enhance login state detection with strict checks for portal elements and improved handling of unknown states 2025-11-04 23:09:31 +01:00
d89816c817 feat: Add recovery handling for navigation errors and conditional HTTP 400 checks in login flow 2025-11-04 23:04:59 +01:00
0afd1e990c feat: Add error handling for navigation interruptions and HTTP 400 responses in login flow 2025-11-04 23:00:05 +01:00
9733c5698b feat: Improve error handling for HTTP 400 and network issues in browser navigation 2025-11-04 22:55:58 +01:00
f32c1bc039 Patch 2 2025-11-04 22:50:02 +01:00
9fbdd2be8a feat: Fix DNS 404 2025-11-04 22:45:56 +01:00
411b435555 feat: update sign-in URL to redirect to the rewards dashboard 2025-11-04 22:23:58 +01:00
c0a868ff1f feat: implement error logging in catch blocks for improved error handling and debugging 2025-11-04 22:04:20 +01:00
4e5f0f2a95 feat: Implement LoginStateDetector for improved login flow state management and error handling 2025-11-03 21:58:31 +01:00
39b62a4190 feat: Implement account suspension checks and improve error handling
- Added a method to check for account suspension using multiple detection methods in BrowserFunc.
- Refactored existing suspension checks to utilize the new method, reducing code duplication.
- Enhanced error handling in various functions to throw original errors instead of wrapping them.
- Improved environment variable parsing in constants to streamline validation.
- Updated login flow to optimize session restoration and error handling.
- Refined Axios request logic to include retry mechanisms for proxy authentication and network errors.
- Enhanced logging functionality to provide clearer output and error context.
- Improved utility functions with additional validation for input parameters.
2025-11-03 21:21:13 +01:00
baf25103f7 Refactor: Clean up unused imports and improve code readability across multiple files 2025-11-03 19:52:27 +01:00
43ed6cd7f8 refactor: remove legacy scheduling and analytics code
- Deleted the scheduler module and its associated functions, transitioning to OS-level scheduling.
- Removed the Analytics module and its related interfaces, retaining only a placeholder for backward compatibility.
- Updated ConfigValidator to warn about legacy schedule and analytics configurations.
- Cleaned up StartupValidator to remove diagnostics and schedule validation logic.
- Adjusted Load.ts to handle legacy flags for diagnostics and analytics.
- Removed unused diagnostics capturing functionality.
2025-11-03 19:18:09 +01:00
579c8a4dcd Refactor page reload and dashboard extraction logic; consolidate dismissal methods in BrowserUtil; enhance Login TOTP handling; streamline environment variable parsing in scheduler 2025-11-03 16:29:38 +01:00
2cc9df5278 Refactor project structure and update references from Light60-1 to Obsidian-wtf
- Changed working directory in Dockerfile from /usr/src/microsoft-rewards-script to /app
- Updated Docker container name and service name from microsoft-rewards-script to microsoft-rewards-bot
- Modified LICENSE, NOTICE, README.md, and other documentation files to reflect new project ownership
- Updated package.json and package-lock.json to change project name and repository links
- Adjusted entrypoint script and Docker Compose configurations for new paths
- Updated security and login handling in source code to reflect new documentation URLs
- Changed logo asset to reflect new branding
2025-11-03 15:17:06 +01:00
8ccfdd23c9 Add comprehensive FAQ and README documentation for Microsoft Rewards Script
- Created FAQ.md with detailed answers to common questions regarding the project, installation, configuration, troubleshooting, safety, and features.
- Established README.md to serve as a documentation hub, outlining the structure and providing quick navigation links to various guides and resources.
2025-11-03 14:54:07 +01:00
6d549e6590 Initial commit 2025-11-01 20:44:31 +01:00