refactor(auth): replace any-cast authenticate fallback with typed appauthenticate decorator in cards, event, and nfc routes#626
Conversation
….authenticate decorator in cards, event, and nfc routes (closes Dev-Card#594)
|
@yachikadev is attempting to deploy a commit to the Prashantkumar Khatri's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @yachikadev, Thanks for opening this pull request. This PR has been automatically classified based on the files modified. Applied Labels
Primary Review Area
Reviewer@Harxhit has been identified as the primary reviewer for this pull request. If you have any questions regarding the affected area or implementation details, feel free to reach out to the assigned reviewer. Thank you for your contribution! |
CI — All Checks PassedBackend — PASS
Mobile — SKIP
Web — SKIP
Last updated: |
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
|
@Harxhit, |
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
We have addressed it in our recent merge. |
|
CI failure note — pre-existing, unrelated to this PR |
We have addressed it in recent merge |
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
|
@Harxhit All CI checks are passing now. Could you please review when you get a chance? |
|
Fix merge conflicts and pin me please . |
Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
|
@Harxhit done |
| import { createCardSchema ,updateCardSchema, addPlatformLinkSchema} from '../validations/card.validation'; | ||
|
|
||
| import type { CardResponse, UpdateCardBody, UpdatedCardResponse } from '../services/cardService'; | ||
| import type { CardResponse, UpdateCardBody } from '../services/cardService'; |
There was a problem hiding this comment.
Why did you removed the type ```UpatedCardResponse``?
|
Congratulations @yachikadev on getting PR #626 merged! Thank you for your contribution to the project. To receive the appropriate GSSoC labels and recognition, please mention @Harxhit in the #get-labels channel on our Discord server and share your merged PR link. |
…authenticate decorator in cards, event, and nfc routes (Dev-Card#626) * refactor(auth): replace any-cast authenticate fallback with typed app.authenticate decorator in cards, event, and nfc routes (closes Dev-Card#594) * Update cards.ts Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com> * Update event.ts Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com> * Update nfc.ts Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com> * Update cards.ts Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com> --------- Signed-off-by: Yachika Sharma <shakuntalaramphalsharma@gmail.com>
Summary
Replaces all (app as any).authenticate fallback chains with properly
typed preHandler — same pattern established in for team.ts.
Changes
cards.ts — auth cleanup
connect.ts — auth cleanup
event.ts — auth cleanup + fixed TS generic types on route methods
nfc.ts — auth cleanup + removed unused imports
Test Results
tsc --noEmit — 0 errors
eslint — 0 errors, 0 warnings
Tests — 69/69 passed
Closes #594