mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
refactor(auth): simplify user session structure in validateRequest function
- Changed user object in mockSession to only include userId, removing email and name for a more streamlined session representation.
This commit is contained in:
@@ -298,11 +298,7 @@ export const validateRequest = async (request: IncomingMessage) => {
|
||||
|
||||
const mockSession = {
|
||||
session: {
|
||||
user: {
|
||||
id: apiKeyRecord.user.id,
|
||||
email: apiKeyRecord.user.email,
|
||||
name: apiKeyRecord.user.name,
|
||||
},
|
||||
userId: apiKeyRecord.user.id,
|
||||
activeOrganizationId: organizationId || "",
|
||||
},
|
||||
user: {
|
||||
|
||||
Reference in New Issue
Block a user