|
Apologies in advance for my scattered idea here. I am trying to run a React app on top of Wordpress but I want to use built in Wordpress authentication rather than an Auth form in my app. My users need to access the dashboard as normal, but view/edit content through the React frontend. Is there a way to get the cookie information generated by the Wordpress login to pass through for authentication in my React app for the POST api method? Basically, auth will happen using the standard Wordpress login form, but I need the auth data generated available to my React app so it can modify posts without having a login flow on the React side of things. I can't find anything useful when searching as everything I've found is about building a login form and posting to the API for auth.
|
# ¿ May 29, 2022 15:39 |
|
|
# ¿ May 15, 2024 16:41 |
|
Secondary thought on this, since I am running the React app inline within Wordpress... I guess I can just create a php form to handle posting which should be authenticated as long as I run it inside a page-template of sorts? Or... will the React app already have authority to POST to the API since it's running inline in a Wordpress page?
|
# ¿ May 29, 2022 21:48 |