File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,13 @@ import { uriEncodeTemplateTag as encode } from '../utils/stringUtils';
4
4
import { baseApi } from './index' ;
5
5
import { httpService } from './utils/serviceHelpers' ;
6
6
7
- const loginOrigin =
8
- process . env . NODE_ENV === 'development'
9
- ? 'https://ci.kbase.us'
10
- : document . location . origin ;
11
-
12
7
// In prod, the canonical auth domain is kbase.us, not narrative.kbase.us
13
8
// navigating instead to narrative.kbase.us will set the internal cookie
14
9
// on the wrong domain.
15
10
const authOrigin =
16
- loginOrigin === 'https://narrative.kbase.us'
11
+ document . location . origin === 'https://narrative.kbase.us'
17
12
? 'https://kbase.us'
18
- : loginOrigin ;
13
+ : document . location . origin ;
19
14
20
15
const authService = httpService ( {
21
16
url : '/services/auth' ,
You can’t perform that action at this time.
0 commit comments