Enable auth v1 #3
2 changed files with 2 additions and 7 deletions
|
@ -22,8 +22,7 @@ export const userLogin = (username, password) => async (dispatch) => {
|
|||
const response = await sudoscientist.post('/auth/signin', {
|
||||
username: username,
|
||||
password: password
|
||||
},
|
||||
{withCredentials: true},
|
||||
}
|
||||
)
|
||||
if (response.status === 401) {
|
||||
console.log("Please check your credentials")
|
||||
|
|
|
@ -2,9 +2,5 @@ import axios from 'axios';
|
|||
|
||||
export default axios.create({
|
||||
baseURL: 'http://api.sudosci.test:8080/v1/api/',
|
||||
withCredentials: true,
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
}
|
||||
withCredentials: true
|
||||
});
|
||||
|
|
Reference in a new issue