@financial-times/qanda-ui 0.0.1-beta.46 → 0.0.1-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/utils/auth.js +3 -1
- package/dist/esm/utils/auth.js +3 -1
- package/package.json +1 -1
package/dist/cjs/utils/auth.js
CHANGED
|
@@ -8,7 +8,9 @@ exports.default = async ({ useStaging = true, displayName = '', commentsAPIUrl =
|
|
|
8
8
|
useStagingEnvironment: useStaging,
|
|
9
9
|
onlySubscribers: true,
|
|
10
10
|
displayName,
|
|
11
|
-
commentsAPIUrl: commentsAPIUrl
|
|
11
|
+
commentsAPIUrl: commentsAPIUrl.startsWith(PROD_AUTH_URL)
|
|
12
|
+
? PROD_AUTH_URL
|
|
13
|
+
: TEST_AUTH_URL,
|
|
12
14
|
});
|
|
13
15
|
// if the JWT creation has failed, a `userHasValidSession` value will be returned
|
|
14
16
|
// our application assumes the values of a JWT are saved to state, so we set the
|
package/dist/esm/utils/auth.js
CHANGED
|
@@ -6,7 +6,9 @@ export default async ({ useStaging = true, displayName = '', commentsAPIUrl = PR
|
|
|
6
6
|
useStagingEnvironment: useStaging,
|
|
7
7
|
onlySubscribers: true,
|
|
8
8
|
displayName,
|
|
9
|
-
commentsAPIUrl: commentsAPIUrl
|
|
9
|
+
commentsAPIUrl: commentsAPIUrl.startsWith(PROD_AUTH_URL)
|
|
10
|
+
? PROD_AUTH_URL
|
|
11
|
+
: TEST_AUTH_URL,
|
|
10
12
|
});
|
|
11
13
|
// if the JWT creation has failed, a `userHasValidSession` value will be returned
|
|
12
14
|
// our application assumes the values of a JWT are saved to state, so we set the
|