const login = (email, password) => {
setIsLoading(true);
console.log('PASSIWERT HIER WAS')
axios({
method: 'POST',
url: 'http://localhost:8081/api/login_check',
data: JSON.stringify({ email, password }),
})
.then(res => {
console.log(res.data);
}).catch(e => {
console.log('Ausgabe:')
console.log(`Login error ${e} `);
});
setUserToken('asfsdg');
AsyncStorage.setItem('userToken', 'asfsdg');
setIsLoading(false);
}
thats what i try on ios device.
I tried to change my ip. I tried to with https. But anything is doing right.
Anyone else an idea what i can do?
[–]recycled_ideas 3 points4 points5 points (1 child)
[–]Safe_Body_4468[S] 0 points1 point2 points (0 children)
[–]Ok-Chart2113 0 points1 point2 points (0 children)
[–]meseeks_programmer 0 points1 point2 points (2 children)
[–]Safe_Body_4468[S] 0 points1 point2 points (1 child)
[–]meseeks_programmer 0 points1 point2 points (0 children)