From edf0d660e51b40f6523388baecf51d7210534dfc Mon Sep 17 00:00:00 2001
From: Christian Zheng <czheng@takima.fr>
Date: Fri, 29 Apr 2022 17:26:50 +0200
Subject: [PATCH] fix(login): change variable name

---
 .../src/core/keycloakOAuth2DeviceFlowConnection.ts             | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/deadlock-plugins/deadlock-extension/src/core/keycloakOAuth2DeviceFlowConnection.ts b/deadlock-plugins/deadlock-extension/src/core/keycloakOAuth2DeviceFlowConnection.ts
index e1150fae..e0fbb38b 100644
--- a/deadlock-plugins/deadlock-extension/src/core/keycloakOAuth2DeviceFlowConnection.ts
+++ b/deadlock-plugins/deadlock-extension/src/core/keycloakOAuth2DeviceFlowConnection.ts
@@ -33,11 +33,10 @@ export default class KeycloakOAuth2DeviceFlowConnection {
    * @returns Promise
    */
   public async tokenIsValid(accessToken: string) {
-    const url = this.userInfoUrl;
     if (!accessToken) {
       return Promise.resolve(false);
     }
-    const tokenValidationRequestResponse: Response = await fetch(url, {
+    const tokenValidationRequestResponse: Response = await fetch(this.userInfoUrl, {
       method: 'POST',
       headers: {
         'Content-Type': 'application/x-www-form-urlencoded',
-- 
GitLab