middleware fix wip

This commit is contained in:
2026-01-04 23:02:28 +01:00
parent 691e6e2c7e
commit cd3d9ae34f
8 changed files with 74 additions and 13 deletions

View File

@@ -78,7 +78,8 @@ export class SessionGateway {
// Parse and return session data
const session = await response.json();
console.log(`[SESSION] Session parsed successfully`);
console.log(`[SESSION] Session parsed successfully:`, JSON.stringify(session, null, 2));
console.log(`[SESSION] Session user role:`, session?.user?.role);
return session as AuthSessionDTO;
} catch (error) {
console.log(`[SESSION] Error occurred:`, error);