diff --git a/Images/DummyTeam/DummyTeam.png b/Images/DummyTeam/DummyTeam.png new file mode 100644 index 000000000..259dc953c Binary files /dev/null and b/Images/DummyTeam/DummyTeam.png differ diff --git a/TopSpace/Login.js b/TopSpace/Login.js index e205b0223..769aedc62 100644 --- a/TopSpace/Login.js +++ b/TopSpace/Login.js @@ -90,10 +90,28 @@ function newLogin() { /* Goes for a login / signup */ + /* Auth0.authorize({ scope: 'openid profile', responseType: 'id_token' }); + */ + + let graphQLQuery = { query: '{ getTeamByOwner(owner: 4) {id name slug owner avatar}} ' }; + + let fechtParam1 = 'https://api.algocommunity.org/graphql'; + let fechtParam2 = { + method: 'POST', + headers: { + 'Content-Type': 'application/json'//, + //'Authorization': 'Bearer ' + }, + body: JSON.stringify(graphQLQuery), + } + + fetch(fechtParam1, fechtParam2) + .then(res => res.json()) + .then(res => console.log(res.data)); } else {