docs: def login(team=None):
      """
      Authenticate.
  
      Launches a web browser and asks the user for a token.
      """
      _check_team_id(team)
      _check_team_exists(team)
      _check_team_login(team)
  
      login_url = "%s/login" % get_registry_url(team)
  
      print("Launching a web browser...")
      print("If that didn't work, please visit the following URL: %s" % login_url)
  
      _open_url(login_url)
  
      print()
      refresh_token = input("Enter the code from the webpage: ")
  
      login_with_token(refresh_token, team)