diff --git a/app/screens/sso/index.tsx b/app/screens/sso/index.tsx
index 6cabcbf47..da5035297 100644
--- a/app/screens/sso/index.tsx
+++ b/app/screens/sso/index.tsx
@@ -161,14 +161,12 @@ const SSO = ({
authentication = (
);
} else {
authentication = (
);
}
diff --git a/app/screens/sso/sso.test.tsx b/app/screens/sso/sso.test.tsx
index 2a267d7a1..3a1f0a8a7 100644
--- a/app/screens/sso/sso.test.tsx
+++ b/app/screens/sso/sso.test.tsx
@@ -22,7 +22,6 @@ describe('SSO with redirect url', () => {
intl: {},
loginError: '',
loginUrl: '',
- serverUrl: 'http://localhost:8065',
setLoginError: jest.fn(),
theme: Preferences.THEMES.denim,
};
diff --git a/app/screens/sso/sso_authentication.tsx b/app/screens/sso/sso_authentication.tsx
index c60007ce0..ef7fe859b 100644
--- a/app/screens/sso/sso_authentication.tsx
+++ b/app/screens/sso/sso_authentication.tsx
@@ -9,7 +9,6 @@ import {Linking, Platform, StyleSheet, View, type EventSubscription} from 'react
import urlParse from 'url-parse';
import {Sso} from '@constants';
-import NetworkManager from '@managers/network_manager';
import {isBetaApp} from '@utils/general';
import AuthError from './components/auth_error';
@@ -20,7 +19,6 @@ interface SSOAuthenticationProps {
doSSOLogin: (bearerToken: string, csrfToken: string) => void;
loginError: string;
loginUrl: string;
- serverUrl: string;
setLoginError: (value: string) => void;
theme: Theme;
}
@@ -32,7 +30,7 @@ const style = StyleSheet.create({
},
});
-const SSOAuthentication = ({doSSOLogin, loginError, loginUrl, serverUrl, setLoginError, theme}: SSOAuthenticationProps) => {
+const SSOAuthentication = ({doSSOLogin, loginError, loginUrl, setLoginError, theme}: SSOAuthenticationProps) => {
const [error, setError] = useState('');
const [loginSuccess, setLoginSuccess] = useState(false);
const intl = useIntl();
@@ -47,8 +45,6 @@ const SSOAuthentication = ({doSSOLogin, loginError, loginUrl, serverUrl, setLogi
if (resetErrors !== false) {
setError('');
setLoginError('');
- NetworkManager.invalidateClient(serverUrl);
- NetworkManager.createClient(serverUrl);
}
const parsedUrl = urlParse(loginUrl, true);
const query: Record = {
diff --git a/app/screens/sso/sso_authentication_with_external_browser.tsx b/app/screens/sso/sso_authentication_with_external_browser.tsx
index af439c23b..62f810e29 100644
--- a/app/screens/sso/sso_authentication_with_external_browser.tsx
+++ b/app/screens/sso/sso_authentication_with_external_browser.tsx
@@ -8,7 +8,6 @@ import {Linking, Platform, View} from 'react-native';
import urlParse from 'url-parse';
import {Sso} from '@constants';
-import NetworkManager from '@managers/network_manager';
import {isErrorWithMessage} from '@utils/errors';
import {isBetaApp} from '@utils/general';
import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
@@ -23,7 +22,6 @@ interface SSOWithRedirectURLProps {
doSSOLogin: (bearerToken: string, csrfToken: string) => void;
loginError: string;
loginUrl: string;
- serverUrl: string;
setLoginError: (value: string) => void;
theme: Theme;
}
@@ -59,7 +57,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => {
};
});
-const SSOAuthenticationWithExternalBrowser = ({doSSOLogin, loginError, loginUrl, serverUrl, setLoginError, theme}: SSOWithRedirectURLProps) => {
+const SSOAuthenticationWithExternalBrowser = ({doSSOLogin, loginError, loginUrl, setLoginError, theme}: SSOWithRedirectURLProps) => {
const [error, setError] = useState('');
const [loginSuccess, setLoginSuccess] = useState(false);
const style = getStyleSheet(theme);
@@ -75,8 +73,6 @@ const SSOAuthenticationWithExternalBrowser = ({doSSOLogin, loginError, loginUrl,
if (resetErrors !== false) {
setError('');
setLoginError('');
- NetworkManager.invalidateClient(serverUrl);
- NetworkManager.createClient(serverUrl);
}
const parsedUrl = urlParse(loginUrl, true);
const query: Record = {