diff --git a/users/user-auth.js b/users/user-auth.js index cb5d6c7..d89bb7b 100644 --- a/users/user-auth.js +++ b/users/user-auth.js @@ -126,7 +126,7 @@ function userAuth({ success: true, payload: userObject, }; - } catch (error) { + } catch (/** @type {any} */ error) { /** * Return User Object * @@ -135,7 +135,7 @@ function userAuth({ return { success: false, payload: null, - msg: error, + msg: error.message, }; } }