diff --git a/composio/cli/login.py b/composio/cli/login.py index 2a356b07c5..b7629c9a93 100644 --- a/composio/cli/login.py +++ b/composio/cli/login.py @@ -39,7 +39,9 @@ def _login( # TODO: Abstract away user_data = context.user_data if user_data.api_key is not None: - raise click.ClickException("Already logged in!") + context.console.print("\n[green]✔ You're already logged in![/green]\n") + context.console.print("> Use [green]'composio logout'[/green] to log out and then login again") + return context.console.print("\n[green]> Authenticating...[/green]\n") try: