@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.
- package/dist/auth.js +1 -1
- 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
|
|
200
|
+
throw new InvalidToken('User not logged in');
|
|
201
201
|
}
|
|
202
202
|
if (isAuthorized && !(await isAuthorized(user))) {
|
|
203
203
|
throw new PermissionDenied('Permission denied');
|