File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments