Skip to content

Commit 1d0a0d3

Browse files
committed
logout -> sso
1 parent 8237042 commit 1d0a0d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ button.checked {
6565
app.get("/callback/:code", async (c: Context) => {
6666
const code = c.req.param("code");
6767
const resp = await fetch(
68-
`https://logout.datasektionen.se/legacyapi/verify/${
68+
`https://sso.datasektionen.se/legacyapi/verify/${
6969
encodeURIComponent(code)
7070
}?api_key=${loginApiKey}`,
7171
);
@@ -175,7 +175,7 @@ app.get("/", async (c: Context) => {
175175
const kthid = await getSignedCookie(c, cookieSecret, "kthid");
176176
if (!kthid) {
177177
return c.redirect(
178-
"https://logout.datasektionen.se/legacyapi/login?callback=" +
178+
"https://sso.datasektionen.se/legacyapi/login?callback=" +
179179
encodeURIComponent("https://smingo.datasektionen.se/callback/"),
180180
);
181181
}

0 commit comments

Comments
 (0)