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:
- No alternatives documented
💭 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
apps/gograb-ai/src/app/core/services/capacitor-bridge.service.tsapps/gograb-ai/src/app/pages/desktop-welcome/desktop-welcome.component.tsapps/gograb-ai/src/app/pages/desktop-welcome/desktop-welcome.component.htmlapps/gograb-ai/src/app/pages/desktop-welcome/desktop-welcome.component.scss
🔗 Related
- Decision ID:
dev_1772299480477_jnfdya1 - Session: 153
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation