diff --git a/src/pages/api/auth/login.ts b/src/pages/api/auth/login.ts index ab17c9376..23dedfc81 100644 --- a/src/pages/api/auth/login.ts +++ b/src/pages/api/auth/login.ts @@ -50,7 +50,7 @@ export default async ( if (user && checkPassword(password, user.password)) { if (redisEnabled) { - const token = await saveAuth({ userId: user.id }); + const token = await saveAuth({ userId: user.id, role: user.role }); return ok(res, { token, user }); }