react-oidc-context
Advanced tools
Comparing version 3.0.0-rc.0 to 3.0.0-rc.1
{ | ||
"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
84243
778
331