update badge by token