mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
f260064083
commit
f00ac1a590
173 changed files with 665 additions and 752 deletions
|
|
@ -3,7 +3,7 @@ import { db, Token } from "@versia-server/kit/db";
|
|||
import { Tokens } from "@versia-server/kit/tables";
|
||||
import { and, eq } from "drizzle-orm";
|
||||
import { describeRoute, resolver, validator } from "hono-openapi";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
|
||||
export default apiRoute((app) => {
|
||||
app.post(
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import { setCookie } from "hono/cookie";
|
|||
import { sign } from "hono/jwt";
|
||||
import { describeRoute, validator } from "hono-openapi";
|
||||
import * as client from "openid-client";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { randomString } from "@/math.ts";
|
||||
|
||||
export default apiRoute((app) => {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { OpenIdLoginFlows } from "@versia-server/kit/tables";
|
|||
import { randomUUIDv7 } from "bun";
|
||||
import { describeRoute, validator } from "hono-openapi";
|
||||
import * as client from "openid-client";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { oauthRedirectUri } from "@/lib";
|
||||
|
||||
export default apiRoute((app) => {
|
||||
|
|
|
|||
|
|
@ -76,7 +76,9 @@ describe("/oauth/token", () => {
|
|||
|
||||
expect(response.status).toBe(422);
|
||||
const body = await response.json();
|
||||
expect(body.error).toInclude(`Expected string at "code"`);
|
||||
expect(body.error).toInclude(
|
||||
`expected string, received undefined at "code"`,
|
||||
);
|
||||
});
|
||||
|
||||
test("should return error for missing redirect_uri", async () => {
|
||||
|
|
@ -95,7 +97,9 @@ describe("/oauth/token", () => {
|
|||
|
||||
expect(response.status).toBe(422);
|
||||
const body = await response.json();
|
||||
expect(body.error).toInclude(`Expected string at "redirect_uri"`);
|
||||
expect(body.error).toInclude(
|
||||
`expected string, received undefined at "redirect_uri"`,
|
||||
);
|
||||
});
|
||||
|
||||
test("should return error for missing client_id", async () => {
|
||||
|
|
@ -114,7 +118,9 @@ describe("/oauth/token", () => {
|
|||
|
||||
expect(response.status).toBe(422);
|
||||
const body = await response.json();
|
||||
expect(body.error).toInclude(`Expected string at "client_id"`);
|
||||
expect(body.error).toInclude(
|
||||
`expected string, received undefined at "client_id"`,
|
||||
);
|
||||
});
|
||||
|
||||
test("should return error for invalid client credentials", async () => {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { AuthorizationCodes } from "@versia-server/kit/tables";
|
|||
import { randomUUIDv7 } from "bun";
|
||||
import { and, eq } from "drizzle-orm";
|
||||
import { describeRoute, resolver, validator } from "hono-openapi";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { randomString } from "@/math";
|
||||
|
||||
export default apiRoute((app) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue