function success(domain){
                if(auth0){
                  //if auth0 then we don't have user storage
                  connection.user = new DomainWrapper(domain); 
                  connection.user.join();
                  sessionPromise.then(resolve);
                }else{
                  //if auth1 use user class to wrap domain and implement user storage and load user data
                  connection.user = new User(self, domain); 
                  connection.user.join();
                  sessionPromise.then(load);
                }
              }
//if we get success from the registrar on login continue depending on auth level
if we get success from the registrar on login continue depending on auth level
if we get success from the registrar on login continue depending on auth level
function success(domain){
                if(auth0){
                  connection.user = new DomainWrapper(domain); 
                  connection.user.join();
                  sessionPromise.then(resolve);
                }else{
                  connection.user = new User(self, domain); 
                  connection.user.join();
                  sessionPromise.then(load);
                }
              }
function success ( domain ) { if ( auth0 ) { connection . user = new DomainWrapper ( domain ) ; connection . user . join ( ) ; sessionPromise . then ( resolve ) ; } else { connection . user = new User ( self , domain ) ; connection . user . join ( ) ; sessionPromise . then ( load ) ; } }
if we get success from the registrar on login continue depending on auth level
if we get success from the registrar on login continue depending on auth level
//if auth0 then we don't have user storage //if auth1 use user class to wrap domain and implement user storage and load user data