new things.

This commit is contained in:
2025-09-12 20:45:48 -04:00
parent c2eb111291
commit 5934f1a91c
11 changed files with 43 additions and 13 deletions

View File

@@ -9,6 +9,7 @@ import { SteamAuthResult } from "../../../util/steam/SteamAuthTypes.ts";
import Server from "../../../server/server.ts";
import Logging from "@proxnet/undead-logging";
import { verify } from "@hono/hono/jwt";
import { env } from "../../../env.ts";
const log = new Logging("ConnectRouteDebug");
@@ -87,7 +88,7 @@ route.app.post('/token', typedZValidator('form', tokenGrantSchema), async c => {
const logins = await Server.Platforms.getCachedLogins(form.platform, form.platform_id, false);
if (form.grant_type == 'refresh_token') {
const secret = Deno.env.get('SECRET');
const secret = env["SECRET"];
if (!secret) {
log.w(`Secret not set!`);
return error(TokenRequestError.InvalidRequest);

View File

@@ -2,13 +2,13 @@ import z from "zod";
import Server from "../../server/server.ts";
import { createHonoRoute } from "../../util/import.ts";
import { typedZValidator } from "../../util/validators.ts";
import sharp from "sharp";
import path from "node:path";
import { RootPath } from "../../util/path.ts";
import Logging from "@proxnet/undead-logging";
import { statusResponse } from "../../util/api.ts";
import { HTTPStatus } from "@oneday/http-status";
import { Buffer } from "node:buffer";
import sharp from "sharp";
export const route = createHonoRoute('/img');