add me point to load user data of current user

This commit is contained in:
Anika Raemer 2025-09-27 07:47:26 +02:00
parent fac606cf97
commit e5b5d7e67d
12 changed files with 215 additions and 67 deletions

9
src/dtos/AuthPayload.ts Normal file
View file

@ -0,0 +1,9 @@
import { JwtPayload } from "jsonwebtoken";
/**
* Shape of the payload stored inside JWT tokens.
* We extend JwtPayload so "iat" / "exp" etc. remain available.
*/
export interface AuthPayload extends JwtPayload {
id: string;
}