react-auth-kit
Advanced tools
Comparing version 3.1.4-alpha.19 to 3.1.4-alpha.20
@@ -31,3 +31,3 @@ /** | ||
*/ | ||
declare function useAuthHeader(): string | null; | ||
declare function useAuthHeader(): () => string | null; | ||
export default useAuthHeader; |
@@ -15,8 +15,10 @@ "use strict"; | ||
var isAuthenticated = (0, _useIsAuthenticated.default)(); | ||
if (!!value.auth && isAuthenticated()) { | ||
return "".concat(value.auth.type, " ").concat(value.auth.token); | ||
} else { | ||
return null; | ||
} | ||
return function () { | ||
if (!!value.auth && isAuthenticated()) { | ||
return "".concat(value.auth.type, " ").concat(value.auth.token); | ||
} else { | ||
return null; | ||
} | ||
}; | ||
} | ||
var _default = exports.default = useAuthHeader; |
@@ -47,3 +47,3 @@ /** | ||
*/ | ||
declare function useAuthUser<T>(): T | null; | ||
declare function useAuthUser<T>(): () => T | null; | ||
export default useAuthUser; |
@@ -15,8 +15,10 @@ "use strict"; | ||
var isAuthenticated = (0, _useIsAuthenticated.default)(); | ||
if (isAuthenticated()) { | ||
return value.userState; | ||
} else { | ||
return null; | ||
} | ||
return function () { | ||
if (isAuthenticated()) { | ||
return value.userState; | ||
} else { | ||
return null; | ||
} | ||
}; | ||
} | ||
var _default = exports.default = useAuthUser; |
{ | ||
"name": "react-auth-kit", | ||
"version": "3.1.4-alpha.19+2977264f", | ||
"version": "3.1.4-alpha.20+4d469c77", | ||
"description": "Authentication Library for React, which makes Token based auth very easy", | ||
@@ -74,3 +74,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2977264fd8822657b33453e4d975aa768aa95932" | ||
"gitHead": "4d469c772da861ffeb23a1f7870762a714458a01" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
64891
1956