Update flask hub authentication services example in doc

The flask example in the documentation was still using the
input argument `cookie_cache_max_age` when instantiating
`HubAuth` object. `cookie_cache_max_age` is deprecated since
JupyterHub 0.8 and should be replaced by `cache_max_age`.
This commit is contained in:
Félix-Antoine Fortin
2019-07-24 09:30:02 -04:00
parent 24c0829289
commit 2e67a534cf

View File

@@ -249,7 +249,7 @@ prefix = os.environ.get('JUPYTERHUB_SERVICE_PREFIX', '/')
auth = HubAuth( auth = HubAuth(
api_token=os.environ['JUPYTERHUB_API_TOKEN'], api_token=os.environ['JUPYTERHUB_API_TOKEN'],
cookie_cache_max_age=60, cache_max_age=60,
) )
app = Flask(__name__) app = Flask(__name__)