Hi guys, we've implemented the welcome back flow (...
# ask-a-descoper
s
Hi guys, we've implemented the welcome back flow (on sign in), but after the page is open for some time, users clicking sign in in welcome back screen and either redirected to magic link flow and getting errors, or either getting this errors:
Copy code
Failed to exchange OAuth code
What are our options to fix this ? Thanks
✅ 1
a
Hey Shahar Looks like auth state is getting stale. OAuth codes/PKCE expire quickly, so if the page sits idle, the exchange fails. We should start a fresh auth flow on click instead of reusing old state, and avoid mixing OAuth with magic link mid-flow.