Keycloak sso #7203
3 changed files with 1 additions and 7 deletions
|
@ -22,8 +22,6 @@ const BackupPage = lazyImport(() => import('page/backup' /* webpackChunkName: "b
|
|||
const Code2257Page = lazyImport(() => import('web/page/code2257' /* webpackChunkName: "code2257" */));
|
||||
// @endif
|
||||
|
||||
console.log('keycloak', keycloak)
|
||||
|
||||
// Chunk: "secondary"
|
||||
const SignInPage = lazyImport(() => import('page/signIn' /* webpackChunkName: "secondary" */));
|
||||
const SignInWalletPasswordPage = lazyImport(() =>
|
||||
|
@ -130,7 +128,6 @@ function PrivateRoute(props: PrivateRouteProps) {
|
|||
const { component: Component, isAuthenticated, ...rest } = props;
|
||||
const urlSearchParams = new URLSearchParams(props.location.search);
|
||||
const redirectUrl = urlSearchParams.get('redirect');
|
||||
// const { keycloak } = useKeycloak();
|
||||
return (
|
||||
<Route
|
||||
{...rest}
|
||||
|
|
|
@ -234,7 +234,6 @@ function AppWrapper() {
|
|||
const [persistDone, setPersistDone] = useState(false);
|
||||
const [keycloakReady, setKeycloakReady] = useState(false);
|
||||
|
||||
// init?
|
||||
useEffect(() => {
|
||||
// @if TARGET='app'
|
||||
moment.locale(remote.app.getLocale());
|
||||
|
@ -283,8 +282,6 @@ function AppWrapper() {
|
|||
}
|
||||
}, [keycloakReady]);
|
||||
|
||||
// initKeycloak();
|
||||
|
||||
useEffect(() => {
|
||||
if (persistDone) {
|
||||
app.store.dispatch(doToggle3PAnalytics(null, true));
|
||||
|
|
|
@ -25,7 +25,7 @@ const defaultState = {
|
|||
referralLink: undefined,
|
||||
referralCode: undefined,
|
||||
user: { has_verified_email: false },
|
||||
accessToken: undefined, // rename this
|
||||
accessToken: undefined, // rename this to authToken if keeping.
|
||||
youtubeChannelImportPending: false,
|
||||
youtubeChannelImportErrorMessage: '',
|
||||
referrerSetIsPending: false,
|
||||
|
|
Loading…
Reference in a new issue