@devmoods/express-extras 0.63.0 → 0.63.1

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.
Files changed (2) hide show
  1. package/dist/auth.js +1 -1
  2. package/package.json +1 -1
package/dist/auth.js CHANGED
@@ -197,7 +197,7 @@ export function createAuth({ getUserById, filterUser, tokenStorage, providers, l
197
197
  try {
198
198
  const user = useCurrentUser();
199
199
  if (!user) {
200
- throw new PermissionDenied('User not logged in');
200
+ throw new InvalidToken('User not logged in');
201
201
  }
202
202
  if (isAuthorized && !(await isAuthorized(user))) {
203
203
  throw new PermissionDenied('Permission denied');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmoods/express-extras",
3
- "version": "0.63.0",
3
+ "version": "0.63.1",
4
4
  "description": "Kubernetes-ready utilities for rapid Node.js application development",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",