diff --git a/package-lock.json b/package-lock.json index 7703ef8d5ce..f9a3f156e60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@deriv-com/analytics": "^1.18.0", "@deriv-com/auth-client": "^1.0.15", "@deriv-com/quill-ui": "^1.16.2", - "@deriv-com/utils": "^0.0.34", + "@deriv-com/utils": "^0.0.37", "@deriv/deriv-api": "^1.0.15", "@deriv/quill-icons": "^1.23.1", "@livechat/customer-sdk": "4.0.2", @@ -2620,9 +2620,9 @@ } }, "node_modules/@deriv-com/utils": { - "version": "0.0.34", - "resolved": "https://registry.npmjs.org/@deriv-com/utils/-/utils-0.0.34.tgz", - "integrity": "sha512-Hq2DWVKiSR4dTnVTy1lMwAt1F58DPAP0VGB2Nfa9mtPWOfOBGO6ZIeU7+fLGrATukc55ZfHDmfqwgnAi6Nqczg==" + "version": "0.0.37", + "resolved": "https://registry.npmjs.org/@deriv-com/utils/-/utils-0.0.37.tgz", + "integrity": "sha512-+ngUvT+OqwblBoqkHcsbLtljjwOGIjjMpo5xLS5fwyhtNvBe8Rcq+140QV1j0xq9vlm2kmcowEKIVBq33imFmg==" }, "node_modules/@deriv/deriv-api": { "version": "1.0.15", diff --git a/package.json b/package.json index 07df2a4eed6..a515cf9d47b 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "@deriv-com/analytics": "^1.18.0", "@deriv-com/auth-client": "^1.0.15", "@deriv-com/quill-ui": "^1.16.2", - "@deriv-com/utils": "^0.0.34", + "@deriv-com/utils": "^0.0.37", "@deriv/deriv-api": "^1.0.15", "@deriv/quill-icons": "^1.23.1", "@livechat/customer-sdk": "4.0.2", diff --git a/src/javascript/_common/auth.js b/src/javascript/_common/auth.js index 5ebfcc46ef3..6a54713b52c 100644 --- a/src/javascript/_common/auth.js +++ b/src/javascript/_common/auth.js @@ -34,8 +34,9 @@ export const getServerInfo = () => { const serverUrl = LocalStorageUtils.getValue(LocalStorageConstants.configServerURL) || localStorage.getItem('config.server_url') || 'oauth.deriv.com'; - const appId = LocalStorageUtils.getValue(LocalStorageConstants.configAppId); - const lang = LocalStorageUtils.getValue(LocalStorageConstants.i18nLanguage); + const defaultAppId = WebSocketUtils.getAppId(); + const appId = LocalStorageUtils.getValue(LocalStorageConstants.configAppId) || defaultAppId; + const lang = LocalStorageUtils.getValue(LocalStorageConstants.i18nLanguage) || 'en'; return { appId,