From ff10e706cd0ae58fb836639be37c328d537879bc Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 15 Jan 2024 12:07:53 +0100 Subject: [PATCH] Use access token again --- jupyter/base/values/values.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyter/base/values/values.yaml b/jupyter/base/values/values.yaml index 9f181eb..4802add 100644 --- a/jupyter/base/values/values.yaml +++ b/jupyter/base/values/values.yaml @@ -33,7 +33,6 @@ hub: if not auth_state: return access_token = auth_state['access_token'] - access_token = auth_state['refresh_token'] spawner.environment['NEXTCLOUD_ACCESS_TOKEN'] = access_token async def refresh_user(self, user, handler=None): @@ -50,6 +49,8 @@ hub: now_hr = datetime.fromtimestamp(now) expires = auth_state['token_expires'] expires_hr = datetime.fromtimestamp(expires) + if debug: + print(f'auth_state for {user}: {auth_state}') if now >= expires: if debug: print(f'Time is: {now_hr}, token expired: {expires_hr}')