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:
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>
|
||||
|
||||
Reference in new issue
Block a user