generate token via php
-
Hey,
i was able to successfully to get the Plugin working and make some authenticated calls with postman.
But my live application ist somehow different.
Im used the themebased approach to design my Front and backend.But now i want rebuild the only the userarea of woocommerce with react.
And i also got it react integrated in my theme and can use it the normal way to add components and stuff.But:
My Login Forms are already working, and they authenticate and login the user via ajax and PHP. After that the user is able to access the default userarea of wc.Now, i dont want to login the user twice via backend and then via frontend.
So my question is:
Is it possible to generate the jwttoken during the normal php Login and return it to frontend
that my user is logged in frontend and backend simultanously?
Im not sure if i can Just call the API via PHP because its probably async and then cant return token in time.Hope you understand my question.
Thank you
The topic ‘generate token via php’ is closed to new replies.