I have a login function which returns either Success or Failure.
type LoginSuccess = { status: "success", isAdmin: boolean, isStaff: boolean }