Jump to content

Reactjs website logging into prestaShop


Recommended Posts

I have a react.js website that I want users to be able to login into and manage items they've purchased. I need a shop where users can make these purchases. So I guess my question is, can users login/create an account thru the site and still access prestaShop without having to login again there? 

Edited by kgood (see edit history)
Link to comment
Share on other sites

You can use the axios library to quickly post and capture the session cookie (saved in browser):

	import axios from 'axios';
	import qs from 'qs';
	export const logMeIn = async (email, passwd) {
	const { data } = await axios.post('https://myprestastore/authentication', qs.stringify({ SubmitLogin: true, email, passwd }));
	// Do something with the login response
Edited by Guest
typo (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...