Files
crewAI/src/crewai/cli/authentication/token.py
2025-05-12 13:30:50 +00:00

10 lines
222 B
Python

from .utils import TokenManager
def get_auth_token() -> str:
"""Get the authentication token."""
access_token = TokenManager().get_token()
if not access_token:
raise Exception
return access_token