@ssplib/react-components 0.0.85 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -126,10 +126,12 @@ function OAuthProvider({ children, AUTH_URL, oidcConfig, redirectURL, validateTo
|
|
|
126
126
|
}
|
|
127
127
|
function logout() {
|
|
128
128
|
setUserLoaded(false);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
router.replace(logoutURL).finally(() => {
|
|
130
|
+
setUser(null);
|
|
131
|
+
(0, cookies_next_1.deleteCookie)(exports.cookieName);
|
|
132
|
+
localStorage.removeItem(userImgName);
|
|
133
|
+
setUserLoaded(true);
|
|
134
|
+
});
|
|
133
135
|
}
|
|
134
136
|
return react_1.default.createElement(auth_1.AuthContext.Provider, { value: { user, isAuth, userLoaded, login, adLogin: () => { }, logout, saveUserData, type: 'govbr' } }, children);
|
|
135
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssplib/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87",
|
|
4
4
|
"description": "SSP React Components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Pedro Henrique <sr.hudrick@gmail.com>",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"react-hook-form": "^7.43.9",
|
|
13
13
|
"react-imask": "^6.6.0",
|
|
14
14
|
"react-query": "^3.39.3",
|
|
15
|
-
"dayjs": "^1.11.7"
|
|
15
|
+
"dayjs": "^1.11.7",
|
|
16
|
+
"react-google-recaptcha": "^2.1.0"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"@types/lodash.get": "^4.4.7",
|