dash_auth.PlotlyAuth AttributeError

Hi,
I’m trying to make Plotly OAuth work using the example given in https://dash.plot.ly/authentication
but no matter what I try I always get this error

File “/home/pedro/.local/lib/python3.6/site-packages/dash_auth/api_requests.py”, line 43, in config
value = plotly.tools.get_config_file().get(key)
AttributeError: module ‘plotly.tools’ has no attribute ‘get_config_file’

By the way, the Basic Auth works just fine, as expected.

The snippet of code in question is

APP_NAME = ‘XXXXXXXX’
APP_URL = ‘https://xxxxxxxxx.herokuapps.com

auth = dash_auth.PlotlyAuth(
app,
APP_NAME,
‘private’,
APP_URL
)

I suspect that it has to do with the fact that some plotly features have moved to the chart-studio package, but I really don’t know how to correct this in the code.

Thanks.