feat: working user auth on deployment #1
@ -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"),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user