code: def get_auth_url(port: int) -> str:
      redirect_uri = f"http://localhost:{port}/login-complete"
      params = urlencode({"redirectTo": redirect_uri})
      return f"{get_lightning_cloud_url()}/sign-in?{params}"
  
imports: import base64
  import json
  import os
  import pathlib
  from dataclasses import dataclass
  from enum import Enum
  from time import sleep
  from typing import Optional
  from urllib.parse import urlencode
  import click
  import requests
  import uvicorn
  from fastapi import FastAPI, Query, Request
  from starlette.background import BackgroundTask
  from starlette.responses import RedirectResponse
  from lightning.app.core.constants import LIGHTNING_CREDENTIAL_PATH, get_lightning_cloud_url
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.network import find_free_network_port
label_desc: Use image node_id 1 for calling the AuthServer obj's underlying member method code with example usage: obj.get_auth_url(port) and returns: get_lightning_cloud_url, str, params