Skip to content

Commit d8f86d8

Browse files
committed
fix(dashboard): add client_id to logout redirect URL
1 parent fcaf781 commit d8f86d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/routes/_auth/logout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { LANYARD_URL } from "~/lib/lanyard-client";
55

66
const getLogoutUrlFn = createServerFn({ method: "GET" }).handler(async () => {
77
const dashboardUrl = process.env.DASHBOARD_URL || "http://localhost:4000";
8+
const clientId = process.env.DASHBOARD_CLIENT_ID || "dashboard";
89
return {
9-
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`)}`,
1011
};
1112
});
1213

0 commit comments

Comments
 (0)