I have a login component which posts user details to a login controller, if the request was successful it returns a 200 with the result to add the identity token to the cookies.