New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-auth-kit

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-auth-kit - npm Package Compare versions

Comparing version 3.1.4-alpha.19 to 3.1.4-alpha.20

2

hooks/useAuthHeader.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc