🦜
Size: a a a
🦜
y
🦜
y
N
export default (req, res) => {
const auth = new Auth()
auth.writeToCokies(instaClient, req.body.username, req.body.password).then(result => res.redirect("/"))
}
Сделал вот так , страница не перенаправляется , приходит статус 307🦜
🦜
y
🦜
🦜
PM
А
А
🦜
N
axios.post("/api/login", {
username: state.username,
password: state.password
})
api/login :export default (req, res) => {
const auth = new Auth()
auth.writeToCokies(instaClient, req.body.username, req.body.password).then(result => {
res.writeHead(302, {
Location: '/',
})
res.end()
})
}🦜
N
N
G