Forward OAuth deep-link callbacks to primary Electron process on Windows and Linux
OAuth deep-link callbacks are now forwarded to the primary Electron process on Windows and Linux, and the signing-in window is brought to the front when the callback arrives. The createClerkBridge function now includes isPrimaryInstance flag and manageSingleInstanceLock option to control single-instance lock behavior.
Patch Changes
-
Forward OAuth deep-link callbacks to the primary Electron process on Windows and Linux, and bring the (#9278) by @jeremy-clerk
signing-in window to the front when the callback arrives.
Delivering those callbacks requires Electron's single-instance lock, so
createClerkBridgenow
acquires it on Windows and Linux wheneverrendereris configured, and quits secondary processes
after forwarding their arguments. Applications that previously ran side-by-side instances on those
platforms will become single-instance. macOS is unaffected. Two new escape hatches: the returned
bridge exposesisPrimaryInstanceso the application can stop its own bootstrap in a secondary
process, andmanageSingleInstanceLock: falseleaves the lock to applications that manage it
themselves. -
Updated dependencies []:
- @clerk/react@6.12.9
Source: original entry ↗