User DTO from the Frontend app

Good morning

I think I miss/missunderstood something about the Separating Application Tiers documentation. Wonder if someone could give me a hint.
Do I have to delete (from the frontend app) default USER entity and create manually the User DTO to use the log-in based on the backend? Basically what I did is copy and paste the code from the JPA entity to DTO entity but is a step that I don´t think I´m doing it the correct way.

Thank you in advance.

That’s correct.
Your User DTO will be populated with data returned by the /rest/userInfo endpoint and the user will have roles returned by /rest/permissions.

Regards,
Konstantin

Hello

Ok, although it would be nice to have a built-on User Dto cause its not a normal DTO (Must have @Annotations) I figured out the way to implement frontend-backend so all good.

Thank you