Skip to content
Snippets Groups Projects
Commit 56835783 authored by Sandro Weber's avatar Sandro Weber
Browse files

WIP tried more configs, no success

parent 6530ded6
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment