From 724887e1339ca10938b2bd1b47bc070e3f1dc185 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 11 Jan 2025 18:28:48 +0100 Subject: [PATCH] Use refresh_token to refresh session --- src/oidc_test/auth_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidc_test/auth_utils.py b/src/oidc_test/auth_utils.py index 9f9f03e..14f82cd 100644 --- a/src/oidc_test/auth_utils.py +++ b/src/oidc_test/auth_utils.py @@ -49,7 +49,7 @@ async def get_current_user(request: Request) -> User: logger.info(f"Token expired for user {user.name}") try: userinfo = await oidc_provider.fetch_access_token( - refresh_token=token.access_token + refresh_token=token.refresh_token ) except OAuthError as err: logger.exception(err)