feat: include user role in JWT payload
- Updated `request.interface.ts` to add `role` to the user object. - Modified `auth.service.ts` to include `role` in the JWT payload.
This commit is contained in:
@@ -4,5 +4,6 @@ export interface AuthenticatedRequest extends Request {
|
||||
user: {
|
||||
sub: string;
|
||||
username: string;
|
||||
role: string;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user