add auth validation to get tasks API
Merged
AR
7mo ago+189+189+012345678901234567890123456789-4-4-0123456789
Summary by CodeRabbit
- Bug Fixes
- Strengthened authentication and authorization when fetching tasks to prevent unauthorized access.
- Ensured account selection in task queries respects user permissions—admins can query other accounts; non-admins cannot override their account.
- Made task query validation fully asynchronous so auth checks complete before tasks are processed.
- Guaranteed task queries always include a resolved account identifier.