Skip to content

Commit d2c6464

Browse files
committed
Merge branch 'development' into staging
2 parents 4c0e7cd + 154e58a commit d2c6464

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/client/components/LayoutWrapper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ export default function LayoutWrapper({ children }) {
9090
// CRITICAL FIX: Clean the URL synchronously *before* doing anything else.
9191
// This prevents the refresh loop.
9292
window.history.replaceState(null, "", pathname)
93+
const toastId = toast.loading("Updating your session...", {
94+
duration: 4000
95+
})
9396

9497
// const refreshSession = async () => {
9598
// const toastId = toast.loading("Updating your session...", {
@@ -120,7 +123,7 @@ export default function LayoutWrapper({ children }) {
120123
const logoutUrl = new URL("/auth/logout", window.location.origin)
121124
logoutUrl.searchParams.set(
122125
"returnTo",
123-
`${process.env.NEXT_PUBLIC_APP_BASE_URL}`
126+
process.env.NEXT_PUBLIC_APP_BASE_URL
124127
)
125128
window.location.assign(logoutUrl.toString())
126129
}

0 commit comments

Comments
 (0)