From c9aa41ab0099b7a05d50d9a981cf7e8a42a04733 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 19 Mar 2025 17:15:02 -0500 Subject: [PATCH] refactor(login): removed roles from the login to shrink the jwt --- server/services/auth/controllers/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/auth/controllers/login.ts b/server/services/auth/controllers/login.ts index 82285dd..891eb61 100644 --- a/server/services/auth/controllers/login.ts +++ b/server/services/auth/controllers/login.ts @@ -39,7 +39,7 @@ export async function login( user_id: user[0].user_id, username: user[0].username, email: user[0].email, - roles: roles || null, + //roles: roles || null, role: user[0].role || null, // this should be removed onces full migration to v2 is completed prod: btoa(`${username.toLowerCase()}:${password}`), };