We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14e7274 + bdaca92 commit c7a8eafCopy full SHA for c7a8eaf
src/services/auth.service.js
@@ -2,10 +2,6 @@ import axios from 'axios';
2
3
// eslint-disable-next-line max-len
4
const API_URL = `${process.env.GATSBY_WORKSHOPCHALLENGE_API_ENDPOINT}/api/login`;
5
-const data = {
6
- username: process.env.GATSBY_USERNAME,
7
- password: process.env.GATSBY_PASSWORD,
8
-};
9
const options = {
10
headers: {
11
'Content-Type': 'application/json',
@@ -17,7 +13,6 @@ class AuthService {
17
13
return axios({
18
14
method: 'POST',
19
15
url: API_URL,
20
- data,
21
16
headers: options,
22
}).then((response) => {
23
if (response.data.accessToken) {
0 commit comments