Fix native OAuth transport flows breaking modal components
Resolved an issue where native OAuth transport flows (e.g. in Electron) were breaking out of modal components and failing with "Redirect url mismatch" errors. OAuth callbacks now navigate within the component's own router and consistently use the registered transport callback URL, preventing production rejections of sign-in and sign-up requests.
Patch Changes
-
Fix native OAuth transport flows (e.g.
@clerk/electron) breaking out of modal components and failing with "Redirect url mismatch" errors. (#9370) by @wobsorianoIntermediate OAuth callback steps (sign-in to sign-up transfer, continue, MFA factors, password reset) now navigate inside the component's own router instead of navigating the app window to an internal Clerk route. Transport flows also always send the registered transport callback URL as the completion redirect, so production instances no longer reject sign-in or sign-up requests when a page-derived URL was picked up as the completion redirect.
Source: original entry ↗