Custom roles was added as an optional parameter on auth calls. Ideally this would have been added to the requestOptions object so that adding new optional parameters isn't a breaking change. Its not worth making the change right now, but consider updating it for the next breaking change