featur add fahrmeister
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user