Authentication and Authorization don't belong in the front-end, that belongs on the backend with the server, the one true source as to whether a user is authenticated and whether a user has authorization to do what they are trying to do.
So as long as you write your REST endpoints correctly, your front-end will fall into line.