import { JwtPayload } from "jsonwebtoken";
import { UserRole } from "../enums/UserRole.js";

/**
 * Shape of the payload stored inside JWT tokens.
 * We extend JwtPayload so "iat" / "exp" etc. remain available.
 */
export interface AuthPayload extends JwtPayload {
    id: string;
    role?: UserRole;
}