mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
10 lines
269 B
Python
10 lines
269 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("No token found, make sure you are logged in")
|
|
return access_token
|