It is similar to the destructuring syntax, but I did not know that javascript had a destructuring.
If this is what it is, the function expects an object with a tracks field (but can by default an empty list if the object does not have it) and an onAuth field, which by default will be undefined . This is basically an easier way to access the fields of the passed object.
source share