From 2749d5dc70ab4dffb2e8904f9b960959b30d872f Mon Sep 17 00:00:00 2001 From: Carl Foster Date: Tue, 3 May 2022 13:24:39 +1000 Subject: [PATCH] Ensure all token refreshes use the Controller --- src/inc/request-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inc/request-handler.ts b/src/inc/request-handler.ts index 0f4141066..27daf5dec 100644 --- a/src/inc/request-handler.ts +++ b/src/inc/request-handler.ts @@ -58,8 +58,8 @@ export class RequestHandler { } // Refresh token is available. Attempt refresh. - isValid = await (this.scheme as RefreshableScheme) - .refreshTokens() + isValid = await (this.scheme as RefreshableScheme).refreshController + .handleRefresh() .then(() => true) .catch(() => { // Tokens couldn't be refreshed. Force reset.