featur add fahrmeister

This commit is contained in:
Matthias Hochmeister
2026-02-27 21:46:50 +01:00
parent da4a56ba6b
commit dbe4f52871
17 changed files with 426 additions and 152 deletions

View File

@@ -43,6 +43,7 @@ declare global {
email: string;
authentikSub: string;
role?: AppRole; // populated when role is stored in DB / JWT
groups?: string[];
};
}
}
@@ -120,6 +121,7 @@ export const authenticate = async (
id: decoded.userId,
email: decoded.email,
authentikSub: decoded.authentikSub,
groups: decoded.groups ?? [],
};
logger.debug('User authenticated successfully', {
@@ -225,6 +227,7 @@ export const optionalAuth = async (
id: decoded.userId,
email: decoded.email,
authentikSub: decoded.authentikSub,
groups: decoded.groups ?? [],
};
}
} catch (error) {