Skip to content

Commit a06f91a

Browse files
authored
Merge pull request #174 from shayan-deriv/shayan/remove-default-app-id-for-production
Shayan/removed default app_id for production
2 parents f63d777 + 91a491e commit a06f91a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constants/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getOauthUrl = () => {
2727
// since we don't have official app_id for staging,
2828
// we will use the red server with app_id=62019 for the staging-p2p.deriv.com for now
2929
// to fix the login issue
30-
if (!/localhost/.test(origin) && (!existingAppId || !existingServerUrl)) {
30+
if (origin === URLConstants.derivP2pStaging && (!existingAppId || !existingServerUrl)) {
3131
LocalStorageUtils.setValue<string>(
3232
LocalStorageConstants.configServerURL,
3333
SocketURL[origin as keyof typeof SocketURL]

0 commit comments

Comments
 (0)