How to get user permission from frontend

I’m building a full-stack app, using Flask and React
in the React part, I didn’t find a way to get the user permission so I can and hidden parts in the page related to his permissions, and I don’t know if I’m searching in something should be done from the backend like return user permission as an endpoint,
what is the best practice to get user permission in the frontend?

Thanks in advance

or should I get the permissions from JWT ?