Socket
Socket
Sign inDemoInstall

react-oidc-context

Package Overview
Dependencies
5
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-rc.0 to 3.0.0-rc.1

2

dist/esm/package.json
{
"type": "module",
"version": "3.0.0-rc.0"
"version": "3.0.0-rc.1"
}

@@ -35,2 +35,3 @@ // src/AuthContext.ts

};
case "USER_SIGNED_OUT":
case "USER_UNLOADED":

@@ -193,2 +194,6 @@ return {

userManager.events.addUserUnloaded(handleUserUnloaded);
const handleUserSignedOut = () => {
dispatch({ type: "USER_SIGNED_OUT" });
};
userManager.events.addUserSignedOut(handleUserSignedOut);
const handleSilentRenewError = (error) => {

@@ -201,2 +206,3 @@ dispatch({ type: "ERROR", error });

userManager.events.removeUserUnloaded(handleUserUnloaded);
userManager.events.removeUserSignedOut(handleUserSignedOut);
userManager.events.removeSilentRenewError(handleSilentRenewError);

@@ -203,0 +209,0 @@ };

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.39.0"
"packageVersion": "7.39.1"
}
]
}

@@ -69,2 +69,3 @@ "use strict";

};
case "USER_SIGNED_OUT":
case "USER_UNLOADED":

@@ -227,2 +228,6 @@ return {

userManager.events.addUserUnloaded(handleUserUnloaded);
const handleUserSignedOut = () => {
dispatch({ type: "USER_SIGNED_OUT" });
};
userManager.events.addUserSignedOut(handleUserSignedOut);
const handleSilentRenewError = (error) => {

@@ -235,2 +240,3 @@ dispatch({ type: "ERROR", error });

userManager.events.removeUserUnloaded(handleUserUnloaded);
userManager.events.removeUserSignedOut(handleUserSignedOut);
userManager.events.removeSilentRenewError(handleSilentRenewError);

@@ -237,0 +243,0 @@ };

{
"name": "react-oidc-context",
"version": "3.0.0-rc.0",
"version": "3.0.0-rc.1",
"description": "OpenID Connect & OAuth2 authentication using react context api as state management",
"repository": {
"type": "git",
"url": "git+https://github.com:authts/react-oidc-context.git"
"url": "git+https://github.com/authts/react-oidc-context.git"
},

@@ -9,0 +9,0 @@ "homepage": "https://github.com/authts/react-oidc-context#readme",

@@ -229,3 +229,4 @@ # react-oidc-context

Secure a route component by using the withAuthenticationRequired higher-order component. If a user attempts to access this route without authentication, they will be redirected to the login page.
Secure a route component by using the `withAuthenticationRequired` higher-order component. If a user attempts
to access this route without authentication, they will be redirected to the login page.

@@ -232,0 +233,0 @@ ```jsx

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc