We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f63d777 + 91a491e commit a06f91aCopy full SHA for a06f91a
src/constants/url.ts
@@ -27,7 +27,7 @@ export const getOauthUrl = () => {
27
// since we don't have official app_id for staging,
28
// we will use the red server with app_id=62019 for the staging-p2p.deriv.com for now
29
// to fix the login issue
30
- if (!/localhost/.test(origin) && (!existingAppId || !existingServerUrl)) {
+ if (origin === URLConstants.derivP2pStaging && (!existingAppId || !existingServerUrl)) {
31
LocalStorageUtils.setValue<string>(
32
LocalStorageConstants.configServerURL,
33
SocketURL[origin as keyof typeof SocketURL]
0 commit comments