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.0.0-alpha.27 to 3.0.0-alpha.28

3

AuthProvider.js

@@ -30,2 +30,5 @@ "use strict";

var tokenObject = new _RxTokenObject.default(authName, authType, refreshTokenName, cookieDomain, cookieSecure);
React.useEffect(function () {
tokenObject.syncTokens(tokenObject.value());
}, [tokenObject.value()]);
return (0, _jsxRuntime.jsx)(_AuthContext.default.Provider, {

@@ -32,0 +35,0 @@ value: tokenObject,

4

package.json
{
"name": "react-auth-kit",
"version": "3.0.0-alpha.27",
"version": "3.0.0-alpha.28",
"description": "Authentication Library for React, which makes Token based auth very easy",

@@ -90,3 +90,3 @@ "keywords": [

},
"gitHead": "455ed7a8cd1a0e4111791e08336cc7f20583a943"
"gitHead": "014a2f519f74bc5cd2d3c8fa1ad14d079445e760"
}

@@ -115,3 +115,3 @@ /**

*/
private syncTokens;
syncTokens: (authState: AuthKitStateInterface<T>) => void;
private setAuthToken;

@@ -118,0 +118,0 @@ private setRefreshToken;

@@ -22,12 +22,2 @@ "use strict";

this.authSubject = new _rxjs.BehaviorSubject(this.initialToken_());
this.authSubject.subscribe({
next: this.syncTokens,
complete: () => {
console.log("Token Synced");
},
error: err => {
console.error("Error Occured while syncing token");
console.log(err);
}
});
}

@@ -34,0 +24,0 @@ subscribe = (next, error) => {

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