Logging into Rest API after password change (no page reload)
-
Hi, I’m having trouble with my user management screen. When a user changes their password on their profile page, they are no longer able to make any other edits (email, profile pic, etc) because they’ve been signed out of the WP API. This makes sense, because the wordpress auth cookies are based on the user’s login and password. I modified my user update function on the frontend to set the wordpress_ and wordpress_logged_in_ cookies to the new values that I pass from the backend after an update, and I can confirm that the subsequent requests use those new cookie values in the header, but I’m still getting a 403 error. I know I’m setting those cookies to the right value, because if I refresh the page the values stay the same, but the API calls start working again. I’d like to do this without a page refresh, however. So, there must be another value in the header that needs to be updated for the REST requests to pass validation. Does anyone know what that value might be? Thanks in advance
- You must be logged in to reply to this topic.