feat: #511 log user logged in (#1405)

This commit is contained in:
Manuel
2024-11-03 00:06:49 +01:00
committed by GitHub
parent deb5a716db
commit b294bf68cf

View File

@@ -51,6 +51,8 @@ export const createSignInEventHandler = (db: Database): Exclude<NextAuthConfig["
);
}
logger.info(`User '${dbUser.name}' logged in at ${dayjs().format()}`);
// We use a cookie as localStorage is not shared with server (otherwise flickering would occur)
cookies().set(colorSchemeCookieKey, dbUser.colorScheme, {
path: "/",