{"record":{"id":"0701ac94abce832d","repo":"crewAIInc/crewAI","slug":"no-token-found-make-sure-you-are-logged-in","errorCode":null,"errorMessage":"No token found, make sure you are logged in","messagePattern":"No token found, make sure you are logged in","errorType":"exception","errorClass":"AuthError","httpStatus":null,"severity":"error","filePath":"lib/crewai-core/src/crewai_core/auth/token.py","lineNumber":16,"sourceCode":"\"\"\"Authentication token retrieval.\"\"\"\n\nfrom __future__ import annotations\n\nfrom crewai_core.token_manager import TokenManager\n\n\nclass AuthError(Exception):\n    \"\"\"Raised when authentication fails.\"\"\"\n\n\ndef get_auth_token() -> str:\n    \"\"\"Return the saved authentication token; raise ``AuthError`` if missing.\"\"\"\n    access_token = TokenManager().get_token()\n    if not access_token:\n        raise AuthError(\"No token found, make sure you are logged in\")\n    return access_token\n","sourceCodeStart":1,"sourceCodeEnd":18,"githubUrl":"https://github.com/crewAIInc/crewAI/blob/754d7323beb2fd042e33444a115ea2d5a47193f0/lib/crewai-core/src/crewai_core/auth/token.py#L1-L18","documentation":"Error \"No token found, make sure you are logged in\" thrown in crewAIInc/crewAI.","triggerScenarios":"Thrown at lib/crewai-core/src/crewai_core/auth/token.py:16 when the library encounters an invalid state.","commonSituations":"Occurs when a token is requested but no stored token exists. Log in first (e.g. crewai login) so a token is written to the token store.","solutions":["Log in with `crewai login` to obtain a token.","Check that your stored credentials file exists and is readable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"754d7323beb2fd042e33444a115ea2d5a47193f0","analyzedAt":"2026-08-15T04:06:56.746Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}