Preserve device login return URL

- Open Clerk sign-in with the current page as the forced redirect URL
- Keep the device authorization flow returning users to where they started
This commit is contained in:
Julius Marminge committed 2026-07-06 22:23:50 -07:00
1 parent 560646c97e
commit e369795c4f
1 file changed
+4 -1
@@ -72,7 +72,10 @@ function SignInGate({
return (
<DeviceSurfaceMessage title={title} message={message}>
<div className="mt-6">
<Button size="sm" onClick={() => clerk.openSignIn()}>
<Button
size="sm"
onClick={() => clerk.openSignIn({ forceRedirectUrl: window.location.href })}
>
Sign in to continue
</Button>
</div>