Skip to content

fix: Pagination and Validation DTO and JWT - #7

Merged
iberikofer merged 2 commits into
mainfrom
feature/pagination-and-validation
Oct 22, 2026
Merged

iberikofer merged 2 commits into
mainfrom
feature/pagination-and-validation

Conversation

@DidoraRudenko

Copy link
Copy Markdown
Collaborator

What was done

  • Pagination: Created PagedResult<T> and PaginationExtensions helpers. The GET /api/interviews endpoint now returns paginated data (page, pageSize, totalCount) to optimize database queries.
  • Validation (AI Token Protection): Added [Required] and [MaxLength(3000)] attributes to SendMessageDto. The API now automatically returns a 400 Bad Request for empty or excessively long messages to prevent spam.
  • Security (Data Isolation): Set up session owner verification. Attempting to access another user's interview safely returns a 404 Not Found.
  • JWT Authentication: Configured Supabase token validation, resolving the persistent 401 Unauthorized issue.

@oleksandkov oleksandkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve confilicts, please, and be a good boy

@iberikofer
iberikofer merged commit df2bfeb into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants