tenjin-ui-kit 0.2.19 → 0.2.20
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.
|
@@ -93,8 +93,13 @@ var AuthenticationProvider = function AuthenticationProvider(_ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}();
|
|
95
95
|
var redirectToLogin = function redirectToLogin() {
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
// const redirectUrl =
|
|
97
|
+
// process.env.NODE_ENV === "production"
|
|
98
|
+
// ? location.pathname
|
|
99
|
+
// : `${window.location.protocol}//${window.location.hostname}:${window.location.port}${location.pathname}`;
|
|
100
|
+
// window.location.href =
|
|
101
|
+
// process.env.REACT_APP_LOGIN_URL +
|
|
102
|
+
// `?redirect_url=${encodeURIComponent(redirectUrl)}`;
|
|
98
103
|
};
|
|
99
104
|
var clearTokenFromSearchParams = function clearTokenFromSearchParams() {
|
|
100
105
|
searchParams.delete(LS_ACCESS_TOKEN_KEY);
|