From 56835783a1371788428b7b85c9490a20bc99c7f7 Mon Sep 17 00:00:00 2001
From: Sandro Weber <webers@in.tum.de>
Date: Mon, 21 Jun 2021 18:12:40 +0200
Subject: [PATCH] WIP tried more configs, no success

---
 src/services/authentication-service-v2.js | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/services/authentication-service-v2.js b/src/services/authentication-service-v2.js
index a032fbf..85ff46f 100644
--- a/src/services/authentication-service-v2.js
+++ b/src/services/authentication-service-v2.js
@@ -100,13 +100,6 @@ class AuthenticationService {
       referrerPolicy: 'no-referrer'
     };
 
-    /*options.body = JSON.stringify({
-      grant_type: 'authorization_code',
-      client_id: this.CLIENT_ID,
-      redirect_uri: window.location.origin,
-      client_secret: this.CLIENT_SECRET,
-      code: authorizationCode
-    });*/
     let formDetails = {
       grant_type: 'authorization_code',
       client_id: this.CLIENT_ID,
@@ -120,10 +113,9 @@ class AuthenticationService {
     options.body = formBody;
 
     const responseAccessTokenRequest = await fetch(urlRequestAccessToken, options);
+    const responseAccessTokenRequestJSON = await responseAccessTokenRequest.json();
     console.info(responseAccessTokenRequest);
-    console.info(await responseAccessTokenRequest.json());
-    /*const responseJSON = await responseAccessTokenRequest.json();
-    console.info(responseJSON);*/
+    console.info(responseAccessTokenRequestJSON);
 
     /*localStorage.setItem(
       this.STORAGE_KEY,
-- 
GitLab