Skip to content

fix(auth): correct token retrieval from cookies and update export syntax#74

Merged
agaesh merged 1 commit intofix/es6-migrationfrom
fix/es6-VerifyWebToken-Middleware
Oct 12, 2025
Merged

fix(auth): correct token retrieval from cookies and update export syntax#74
agaesh merged 1 commit intofix/es6-migrationfrom
fix/es6-VerifyWebToken-Middleware

Conversation

@agaesh
Copy link
Owner

@agaesh agaesh commented Oct 12, 2025

Title: fix(auth): correct token retrieval from cookies and update export syntax

Description:
This pull request refactors the verifyWebToken middleware to use ES6 module syntax and corrects the token retrieval from cookies.

Changes:

  • Converted requireimport
  • Converted exportsexport
  • Corrected token retrieval from res.cookie.tokenreq.cookies?.token
  • Preserved existing logic and error handling

Notes:

  • Part of the ongoing ES6 migration effort.
  • Integration testing will be handled later in the es6-migration branch.

Branch Name:
fix/es6-verifyWebToken

@agaesh agaesh self-assigned this Oct 12, 2025
@agaesh agaesh changed the base branch from main to fix/es6-migration October 12, 2025 01:08
@agaesh agaesh merged commit bdb4514 into fix/es6-migration Oct 12, 2025
1 check failed
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.

Issue: Refactor JWT Verification Middleware and Test File to ES6 Module Syntax

1 participant