Skip to content

Commit 7e0ea10

Browse files
committed
fixup! chore: move app proxying code to workspaceapps pkg
1 parent 921a7c5 commit 7e0ea10

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

site/src/xServices/auth/authXService.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,8 @@ const signIn = async (
141141
}
142142

143143
const signOut = async () => {
144-
// Get app hostname so we can see if we need to log out of app URLs.
145-
// We need to load this before we log out of the API as this is an
146-
// authenticated endpoint.
147-
const appHost = await API.getApplicationsHost()
148144
const [authMethods] = await Promise.all([
149-
API.getAuthMethods(), // Antecipate and load the auth methods
145+
API.getAuthMethods(), // Anticipate and load the auth methods
150146
API.logout(),
151147
])
152148

@@ -372,7 +368,7 @@ export const authMachine =
372368
updateProfileError: (_) => undefined,
373369
}),
374370
redirect: (_, { data }) => {
375-
window.location.href = location.origin
371+
window.location.href = location.origin
376372
},
377373
},
378374
guards: {

0 commit comments

Comments
 (0)