File tree 1 file changed +8
-5
lines changed 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -473,15 +473,18 @@ export const authMachine =
473
473
// Get app hostname so we can see if we need to log out of app URLs.
474
474
// We need to load this before we log out of the API as this is an
475
475
// authenticated endpoint.
476
- const appHost = await API . getApplicationsHost ( ) ;
477
- await API . logout ( ) ;
476
+ const appHost = await API . getApplicationsHost ( )
477
+ await API . logout ( )
478
478
479
479
if ( appHost . host ) {
480
- const redirect_uri = encodeURIComponent ( window . location . href ) ;
480
+ const redirect_uri = encodeURIComponent ( window . location . href )
481
481
// The path doesn't matter but we use /api because the dev server
482
482
// proxies /api to the backend.
483
- const uri = `${ window . location . protocol } //${ appHost . host . replace ( "*" , "coder-logout" ) } /api/logout?redirect_uri=${ redirect_uri } ` ;
484
- window . location . replace ( uri ) ;
483
+ const uri = `${ window . location . protocol } //${ appHost . host . replace (
484
+ "*" ,
485
+ "coder-logout" ,
486
+ ) } /api/logout?redirect_uri=${ redirect_uri } `
487
+ window . location . replace ( uri )
485
488
}
486
489
} ,
487
490
getMe : API . getUser ,
You can’t perform that action at this time.
0 commit comments