Add frontend and backend changes for client side authentication