Skip to content

Commit c7a8eaf

Browse files
Merge pull request #2513 from hpe-dev-incubator/testing
remove username and password from login url
2 parents 14e7274 + bdaca92 commit c7a8eaf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/services/auth.service.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import axios from 'axios';
22

33
// eslint-disable-next-line max-len
44
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-
};
95
const options = {
106
headers: {
117
'Content-Type': 'application/json',
@@ -17,7 +13,6 @@ class AuthService {
1713
return axios({
1814
method: 'POST',
1915
url: API_URL,
20-
data,
2116
headers: options,
2217
}).then((response) => {
2318
if (response.data.accessToken) {

0 commit comments

Comments
 (0)