There was an error while loading. Please reload this page.
1 parent fcaf781 commit d8f86d8Copy full SHA for d8f86d8
1 file changed
src/routes/_auth/logout.tsx
@@ -5,8 +5,9 @@ import { LANYARD_URL } from "~/lib/lanyard-client";
5
6
const getLogoutUrlFn = createServerFn({ method: "GET" }).handler(async () => {
7
const dashboardUrl = process.env.DASHBOARD_URL || "http://localhost:4000";
8
+ const clientId = process.env.DASHBOARD_CLIENT_ID || "dashboard";
9
return {
- lanyardEndSession: `${LANYARD_URL}/api/auth/oauth2/endsession?post_logout_redirect_uri=${encodeURIComponent(`${dashboardUrl}/login`)}`,
10
+ lanyardEndSession: `${LANYARD_URL}/api/auth/oauth2/endsession?client_id=${encodeURIComponent(clientId)}&post_logout_redirect_uri=${encodeURIComponent(`${dashboardUrl}/login`)}`,
11
};
12
});
13
0 commit comments