modarb-be / src /common /interfaces /jwt-payload.interface.ts
moahmedwafy's picture
feat: auth refactors
2f0e1b7
raw
history blame
221 Bytes
import { Role } from "@common/enums/role.enum";
export type IJwtLoginPayload = {
id: string;
email: string;
name: string;
} & (
| {
role: Role;
type: "admin";
}
| {
type: "user";
}
);