mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): ✅ Fix all failing tests
This commit is contained in:
parent
4c430426d3
commit
c55be8a862
11 changed files with 111 additions and 179 deletions
|
|
@ -57,10 +57,7 @@ export const applyToHono = (app: Hono<HonoEnv>): void => {
|
|||
throw new ApiError(401, "Missing JWT cookie");
|
||||
}
|
||||
|
||||
const result = await verify(
|
||||
jwtCookie,
|
||||
config.authentication.keys.public,
|
||||
);
|
||||
const result = await verify(jwtCookie, config.authentication.key);
|
||||
|
||||
const { sub } = result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue