Skip to content

Commit 0863c0e

Browse files
authored
use dynamic success url to make it work in various envs (#280)
1 parent db33c37 commit 0863c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/events/src/routes/login.lazy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Login() {
1515
redirectToConnect({
1616
storage: localStorage,
1717
connectUrl: 'http://localhost:5180',
18-
successUrl: 'http://localhost:5173/authenticate-success',
18+
successUrl: `${window.location.origin}/authenticate-success`,
1919
appId: '93bb8907-085a-4a0e-83dd-62b0dc98e793',
2020
redirectFn: (url: URL) => {
2121
window.location.href = url.toString();

0 commit comments

Comments
 (0)