Update authentication api