Skip to content

Fix/auth middleware type error 2 #759

Fix/auth middleware type error 2

Fix/auth middleware type error 2 #759

Triggered via pull request July 3, 2026 09:57
Status Failure
Total duration 53s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 3 warnings
type-check
Process completed with exit code 2.
type-check: src/lib/authMiddleware.ts#L61
Type '{ id: string; name: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; referralCount: number; }' is missing the following properties from type '{ id: string; name: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; referralCount: number; createdAt: string; updatedAt: string; emailVerified: boolean; referralCode?: string | undefined; referredBy?: string | undefined; }': createdAt, updatedAt, emailVerified
type-check: src/lib/authMiddleware.ts#L48
Type '{ id: string; name: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; referralCount: number; }' is missing the following properties from type '{ id: string; name: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; referralCount: number; createdAt: string; updatedAt: string; emailVerified: boolean; referralCode?: string | undefined; referredBy?: string | undefined; }': createdAt, updatedAt, emailVerified
validate
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
lint
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
type-check
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/