Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 9148cab

Browse files
committed
fix: 🔥 fixed login redirect issue
1 parent 9f2ff43 commit 9148cab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ export const getServerConfig = () => {
143143
if (isBrowser) {
144144
const config_server_url = localStorage.getItem('config.server_url');
145145
const config_app_id = localStorage.getItem('config.app_id');
146+
const is_qa_server = config_server_url?.toLowerCase().includes('qa');
147+
const oauth = is_qa_server ? config_server_url : OAUTH_URL;
146148

147149
return {
148150
serverUrl: config_server_url ?? DEFAULT_WS_SERVER,
149151
appId: config_app_id ?? getAppId(),
150-
oauth: config_server_url ?? OAUTH_URL,
152+
oauth,
151153
};
152154
} else {
153155
return {

0 commit comments

Comments
 (0)