fix: for real this time

This commit is contained in:
ethanf 2024-10-12 02:32:52 -05:00
parent a1b804017b
commit f13d1557fb

View File

@ -43,7 +43,7 @@ export interface SteamUser {
export const Steam = new SteamAuth({ export const Steam = new SteamAuth({
realm: `http://${hostname}:${port}`, realm: `http://${hostname}:${port}`,
returnUrl: `https://${deployHostname}${authPath}/return`, returnUrl: `https://${hostname}:${port}${authPath}/return`,
apiKey: Deno.env.get("STEAM_API_KEY"), 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; const user = await Steam.authenticate(ctx) as SteamUser;
ctx.state.session.set("steamid", user.steamid); ctx.state.session.set("steamid", user.steamid);
ctx.state.session.set("user", user); ctx.state.session.set("user", user);
ctx.response.redirect(`http://localhost:5173/signedIn`); ctx.response.redirect(`https://${deployHostname}/signedIn`);
} catch (e) { } catch (e) {
ctx.response.body = `Error: ${e}`; ctx.response.body = `Error: ${e}`;
} }