new things.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user