@skillstew/common 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ class AuthMiddleware {
23
23
  catch (err) {
24
24
  if (err instanceof JwtErrors_1.AccessTokenVerifyError) {
25
25
  res
26
- .status(HttpStatus_1.HttpStatus.BAD_REQUEST)
26
+ .status(HttpStatus_1.HttpStatus.UNAUTHORIZED)
27
27
  .json({ success: false, message: err.message, code: err.code });
28
28
  return;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillstew/common",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "scripts": {
@@ -38,7 +38,7 @@ export class AuthMiddleware {
38
38
  } catch (err) {
39
39
  if (err instanceof AccessTokenVerifyError) {
40
40
  res
41
- .status(HttpStatus.BAD_REQUEST)
41
+ .status(HttpStatus.UNAUTHORIZED)
42
42
  .json({ success: false, message: err.message, code: err.code });
43
43
  return;
44
44
  } else if (err instanceof InvalidTokenError) {