Bugfix: Why does clicking 'Sign in with GoGrab' on Vitto mobile do n...

Documentation for Sessions

🐛 Bugfix: Why does clicking 'Sign in with GoGrab' on Vitto mobile do n...

Date: 2026-02-28
Time: 17:24:44 UTC
Session: gspace1-153.3
Agent: angular
Confidence: 98%
Status: ✅ Documented


📋 Decision Context

Question:

Why does clicking 'Sign in with GoGrab' on Vitto mobile do nothing?

Task: Fix vitto-mobile login flow — deep link auth callback never fires


🎯 Decision Made

Chosen:

Fix URL parsing in CapacitorBridgeService — check url.hostname === 'auth' instead of url.pathname === '/auth'

Options Considered:


💭 Reasoning

For custom URL schemes like vitto://auth?token=..., the JavaScript URL parser treats 'auth' as the hostname, not the pathname. url.pathname is empty string, so the condition on line 78 was always false. The deep link callback was silently discarded, leaving the app stuck in the 'waiting for browser' spinner forever. Also added: Browser.close() after callback, credential form escape hatch during wait state, email pre-fill for returning users.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation