Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@hono/node-server": "^1.19.8",
"@hono/standard-validator": "^0.2.1",
"hono": "^4.11.3",
"hono": "^4.11.4",
"hono-openapi": "^1.1.2",
"kysely": "^0.28.9",
"kysely-ctl": "^0.20.0",
Expand Down
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions source/services/create_jwt_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export async function createJwtToken(expiresIn: number): Promise<string> {
exp: Math.floor(expirationDate.getTime() / 1000),
},
configuration.jwtSecret,
"HS256",
);

return token;
Expand Down
2 changes: 1 addition & 1 deletion source/services/verify_jwt_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import configuration from "../configuration.js";

export async function verifyJwtToken(token: string) {
try {
const payload = await verify(token, configuration.jwtSecret);
const payload = await verify(token, configuration.jwtSecret, "HS256");

if (payload.expiresIn) {
const expirationDate = new Date((payload.exp as number) * 1000);
Expand Down