<script>  
  //oauthIframeCallback();
  window.close();
</script>

<script>  
  //oauthIframeCallback();
  if (window.name == "ConnectWithOAuth")  {
      window.close();
  } else {
      window.location = "/"; 
  }

</script>

Handle OAuth requests which do NOT use the normal popup window. Like "import wizard" links from the main ORCID site. In those cases, don't attempt to close the window and instead redirect to '/' to kick off the default name search.
Handle OAuth requests which do NOT use the normal popup window. Like
"import wizard" links from the main ORCID site. In those cases, don't
attempt to close the window and instead redirect to '/' to kick off
the default name search.
