import axios from 'axios';
const { data } = await axios.post('http://localhost:1337/auth/local', {
identifier: 'reader@strapi.io',
password: 'strapi',
});
console.log(data);
Copied to clipboard!
node_modules/strapi-plugin-users-permissions/controllers/Auth.js