Skip to content

Commit 2f59a54

Browse files
author
Sachin Maheshwari
committed
work-around for enterprise customer if custom domain set.
1 parent 724d1b2 commit 2f59a54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const qs = (function (a) {
2323

2424
const authSetup = function () {
2525

26-
const domain = 'topcoder-dev.auth0.com';
26+
let domain = 'auth.topcoder-dev.com';
2727
const clientId = 'BXWXUWnilVUPdN01t2Se29Tw2ZYNGZvH';
2828
const useLocalStorage = false;
2929
const useRefreshTokens = false;
@@ -41,6 +41,10 @@ const authSetup = function () {
4141
const loggerMode = "dev";
4242
const IframeLogoutRequestType = "LOGOUT_REQUEST";
4343

44+
if (utmSource && utmSource != 'undefined') {
45+
domain = "topcoder-dev.auth0.com";
46+
}
47+
4448

4549
var auth0 = null;
4650
var isAuthenticated = false;

0 commit comments

Comments
 (0)