feat: working user auth on deployment #1

Merged
ethanf merged 6 commits from feature into main 2024-11-09 16:45:10 +00:00
Showing only changes of commit a1b804017b - Show all commits

View File

@ -16,6 +16,7 @@ type AppState = {
const router = new Router<AppState>(); const router = new Router<AppState>();
const hostname = "localhost"; const hostname = "localhost";
const deployHostname = "forums.warabi.co"
const authPath = "/auth"; const authPath = "/auth";
const port = 8000; const port = 8000;
@ -42,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: `http://${hostname}:${port}${authPath}/return`, returnUrl: `https://${deployHostname}${authPath}/return`,
apiKey: Deno.env.get("STEAM_API_KEY"), apiKey: Deno.env.get("STEAM_API_KEY"),
}); });