handleMail(postData) {
return axios({
method: 'post',
url: '/auth/signin',
data: postData,
});
}
const handleSubmit = async e => {
// some code
try {
const { data } = await auth.handleMail(postData);
console.log('success', data);
} catch (e) {
console.log('error', e);
}
};