Please add the protected route to the project SPA. For example contact is protected when user try to access contact page user redirect to login page.