fix to iOS identity token code