Skip to content

Auth module test - #1563

Merged
yusuftomilola merged 2 commits into
DistinctCodes:mainfrom
Qoder-Undefined:Auth
Jul 27, 2026
Merged

Auth module test#1563
yusuftomilola merged 2 commits into
DistinctCodes:mainfrom
Qoder-Undefined:Auth

Conversation

@Qoder-Undefined

Copy link
Copy Markdown
Contributor

Unit tests for the auth module
Overview
backend/src/auth/ is the largest untested module: 34 TypeScript files and zero .spec.ts. It covers login, registration, JWT, refresh, password reset, OTP, and 2FA (otplib is a dependency) — the highest-risk surface in the app.

Tasks
Test the service: register (duplicate email → 409), login (wrong password → 401), token issuance, refresh-token rotation and reuse detection.
Test password reset: token generation, single use, expiry.
closes #1459
closes #1458
closes #1457
closes #1456

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Qoder-Undefined is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yusuftomilola yusuftomilola 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.

Great work on the Auth module tests! Comprehensive test coverage for authentication ensures the auth system is robust and reliable. Good attention to edge cases and security scenarios.

@yusuftomilola
yusuftomilola merged commit 1de255e into DistinctCodes:main Jul 27, 2026
0 of 10 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

2 participants