switched to hono/jwt to save some kb

This commit is contained in:
dswbx
2024-11-25 17:54:26 +01:00
parent 16a6a3315d
commit 1c94777317
7 changed files with 49 additions and 41 deletions

View File

@@ -83,7 +83,15 @@ export const migrations: Migration[] = [
version: 7,
up: async (config, { db }) => {
// automatically adds auth.cookie options
return config;
// remove "expiresIn" (string), it's now "expires" (number)
const { expiresIn, ...jwt } = config.auth.jwt;
return {
...config,
auth: {
...config.auth,
jwt
}
};
}
}
];