mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
fixed blowup code
This commit is contained in:
@@ -22,7 +22,7 @@ export interface LoginRequest {
|
||||
}
|
||||
|
||||
export interface JWTPayload {
|
||||
id: number;
|
||||
id: string; // ← VON number ZU string ÄNDERN
|
||||
email: string;
|
||||
role: string;
|
||||
iat?: number;
|
||||
@@ -64,7 +64,7 @@ export const login = async (req: Request, res: Response) => {
|
||||
|
||||
// Create token payload
|
||||
const tokenPayload: JWTPayload = {
|
||||
id: user.id,
|
||||
id: user.id.toString(), // ← Sicherstellen dass es string ist
|
||||
email: user.email,
|
||||
role: user.role
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user