in dell_ai/auth.py [0:0]
def login(token: str) -> None:
"""
Log in with a Hugging Face token.
Args:
token: The Hugging Face token to use for authentication
Raises:
AuthenticationError: If login fails or token is invalid
"""
try:
# Use native login method which also validates the token
hf_login(token=token)
except Exception as e:
raise AuthenticationError(f"Failed to login: {str(e)}")