1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Transform username/password login response to json (#211)

This commit is contained in:
Mathias Åhsberg 2020-05-14 17:11:51 +00:00 committed by GitHub
parent 91fd43c553
commit 01d747e590

View File

@ -26,7 +26,9 @@ function passwordLogin(path, data) {
credentials: 'include',
headers,
body: JSON.stringify(data),
}).then(throwIfNotSuccess);
})
.then(throwIfNotSuccess)
.then(response => response.json());
}
export default {