mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 12:52:11 +03:00
- Modified OAuth exchange route to use upsert logic at all 3 connection-save locations - Before creating a new connection, checks for existing connections with same provider+email+authType - If match found, calls updateProviderConnection() to refresh tokens instead of creating duplicate - Falls back to createProviderConnection() for genuinely new connections - Fixes: re-auth button creating new account entries instead of refreshing existing ones