Create auth middleware #44
Annotations
12 errors
Run build:
src/auth/jwt.ts#L43
Argument of type 'unknown' is not assignable to parameter of type 'Error'.
|
Run build:
src/auth/jwt.ts#L47
Parameter 'res' implicitly has an 'any' type.
|
Run build:
src/auth/jwt.ts#L78
Type 'String' cannot be used as an index type.
|
Run build:
src/auth/jwt.ts#L81
Property 'map' does not exist on type 'string | string[]'.
|
Run build:
src/auth/jwt.ts#L82
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof UserRole'.
|
Run build:
src/auth/jwt.ts#L86
Parameter 'req' implicitly has an 'any' type.
|
Run build:
src/auth/jwt.ts#L95
Type 'Promise<JWTVerifyResult<JWTPayload>>' is not assignable to type 'string | JWTPayload'.
|
Run build:
src/auth/jwt.ts#L95
No overload matches this call.
|
Run build:
src/error.ts#L6
This member must have an 'override' modifier because it overrides a member in the base class 'Error'.
|
Run build:
src/error.ts#L7
This member must have an 'override' modifier because it overrides a member in the base class 'Error'.
|
Report Coverage
Failed to parse the json-summary at path "/home/runner/work/badgehub-api/badgehub-api/coverage/coverage-summary.json."
Make sure to run vitest before this action and to include the "json-summary" reporter.
Original Error:
Error: ENOENT: no such file or directory, open '/home/runner/work/badgehub-api/badgehub-api/coverage/coverage-summary.json'
at async open (node:internal/fs/promises:636:25)
at async readFile (node:internal/fs/promises:1246:14)
at async Iy (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:71:730)
at async mu (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:71:811)
at async lq (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:149:626)
|
Report Coverage
Error: ENOENT: no such file or directory, open '/home/runner/work/badgehub-api/badgehub-api/coverage/coverage-summary.json'
|
Loading