diff --git a/src/services/auth/auth-utils.ts b/src/services/auth/auth-utils.ts index 93fe77a..f0799b1 100644 --- a/src/services/auth/auth-utils.ts +++ b/src/services/auth/auth-utils.ts @@ -38,6 +38,7 @@ export function createGoogleStrategy(device: string) { export async function getJwtPayloadFromDatabase(userId: string) { const payload = await Database.ROLES.findOne({ userId: userId }).select([ "userId", + "name", "roles", ]); if (!payload) {