If you know how to fix the issue, make a pull request instead.
If you do not mention the authors the issue will be ignored.
The export class UnauthorizedError should be changed:
- FROM:
export class UnauthorizedError extends Error {
name: string;
message: string;
code: string;
status: number;
inner: Error
}
export type ErrorCode =
"revoked_token"
| "invalid_token"
| "credentials_bad_scheme"
| "credentials_bad_format"
| "credentials_required";
export class UnauthorizedError {
/** 401 */
status: number;
message: string;
name: "UnauthorizedError";
code: ErrorCode;
inner: { message: string };
constructor(code: ErrorCode, error: { message: string });
}
If you know how to fix the issue, make a pull request instead.
@types/express-jwtpackage and had problems.Definitions by:inindex.d.ts) so they can respond.If you do not mention the authors the issue will be ignored.
The export class UnauthorizedError should be changed: