mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
switched to hono/jwt to save some kb
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user