diff --git a/oauth_handler.py b/oauth_handler.py index 227fd24..4d529bf 100644 --- a/oauth_handler.py +++ b/oauth_handler.py @@ -330,7 +330,7 @@ def create_display_only_success_page(session_id, app_key, app_secret, refresh_to
- 📋 Copy the credentials above, then manually refresh ComfyUI to hide the auth fields. Close this window when done. + Copy the credentials above, then manually refresh ComfyUI to hide the auth fields. Close this window when done.
@@ -500,7 +500,7 @@ async def handle_oauth_callback(request): app_secret = session_data['app_secret'] dropbox_folder = session_data['dropbox_folder'] - # Special success page with textarea fields for credentials + # Special success page with textarea fields for credentials (stays open for copying) return create_display_only_success_page(session_id, app_key, app_secret, refresh_token, dropbox_folder) # If we couldn't extract the refresh token, fall back to error handling @@ -513,7 +513,7 @@ async def handle_oauth_callback(request): """, content_type='text/html', status=500) else: - # Standard success page for other storage methods + # Standard success page for env_file storage method (auto-closes quickly) return web.Response(text=f""" @@ -578,7 +578,7 @@ async def handle_oauth_callback(request):
✅

Authorization Successful!

{message}

-

ComfyUI will refresh automatically

+

This window will close automatically

""", content_type='text/html')