react-auth-kit
Advanced tools
Comparing version 3.1.4-alpha.0 to 3.1.4-alpha.4
@@ -21,3 +21,3 @@ "use strict"; | ||
} else { | ||
throw new _errors.AuthError('Auth Provider is missing. Make sure, you' + ' are using this component inside the auth provider.'); | ||
throw new _errors.AuthError('Router Plugin is not implemented in the AuthProvider. Please' + ' use the router prop of AuthProvider and Router plugin to' + ' use this feture'); | ||
} | ||
@@ -24,0 +24,0 @@ } |
@@ -37,5 +37,3 @@ /** | ||
*/ | ||
declare function useSignOut(): ({ navigateTo }: { | ||
navigateTo?: string; | ||
}) => void; | ||
declare function useSignOut(): (navigateTo?: string) => void; | ||
export default useSignOut; |
@@ -14,4 +14,3 @@ "use strict"; | ||
var router = (0, _AuthContext.useReactAuthKitRouter)(); | ||
return function (_ref) { | ||
var navigateTo = _ref.navigateTo; | ||
return function (navigateTo) { | ||
context.set((0, _reducers.doSignOut)()); | ||
@@ -24,3 +23,3 @@ if (navigateTo) { | ||
} else { | ||
throw new _errors.AuthError('Auth Provider is missing. Make sure, you' + ' are using this component inside the auth provider.'); | ||
throw new _errors.AuthError('Router Plugin is not implemented in the AuthProvider. Please' + ' use the router prop of AuthProvider and Router plugin to' + ' use this feture'); | ||
} | ||
@@ -27,0 +26,0 @@ } |
{ | ||
"name": "react-auth-kit", | ||
"version": "3.1.4-alpha.0+0b0c0d01", | ||
"version": "3.1.4-alpha.4+92af5ffe", | ||
"description": "Authentication Library for React, which makes Token based auth very easy", | ||
@@ -74,3 +74,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "0b0c0d01b3ea74c548fbd907a1a31a32d4b85a34" | ||
"gitHead": "92af5ffee8677059f95041cf0e76f880edb36f9e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
63022
1900