diff --git a/api/main.ts b/api/main.ts index c233d0a..5b4c400 100644 --- a/api/main.ts +++ b/api/main.ts @@ -43,7 +43,7 @@ export interface SteamUser { export const Steam = new SteamAuth({ realm: `http://${hostname}:${port}`, - returnUrl: `https://${deployHostname}${authPath}/return`, + returnUrl: `https://${hostname}:${port}${authPath}/return`, apiKey: Deno.env.get("STEAM_API_KEY"), }); @@ -61,7 +61,7 @@ router.get(`${authPath}/return`, async (ctx) => { const user = await Steam.authenticate(ctx) as SteamUser; ctx.state.session.set("steamid", user.steamid); ctx.state.session.set("user", user); - ctx.response.redirect(`http://localhost:5173/signedIn`); + ctx.response.redirect(`https://${deployHostname}/signedIn`); } catch (e) { ctx.response.body = `Error: ${e}`; }