Skip to content

Commit 0747c06

Browse files
authored
Merge pull request #5 from 5queezer/fix/oauth-startup-lifespan
fix: skip cookie auth in CLI when OAuth is enabled
2 parents 12267da + 0b41f54 commit 0747c06

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

linkedin_mcp_server/cli_main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,10 @@ def main() -> None:
339339

340340
logger.debug(f"Server configuration: {config}")
341341

342-
# Phase 1: Ensure Authentication is Ready
342+
# Phase 1: Ensure Authentication is Ready (skip for OAuth — no cookie profile needed)
343343
try:
344-
ensure_authentication_ready()
344+
if not (config.server.oauth and config.server.oauth.enabled):
345+
ensure_authentication_ready()
345346
if config.is_interactive:
346347
print("✅ Authentication ready")
347348
logger.info("Authentication ready")

0 commit comments

Comments
 (0)