Hello,
I have React application for which I’m using with @auth0/auth0-react
library. This works great for authenticating users and accessing their user profile information on auth0.
However, I have separate WordPress installation with protected data which I would like to show only to users authenticated via auth0 inside my React application. What would be the best way to achieve this?
I know that WP doesn’t actually have JWT way of handling REST API requests and I would probably need to find a plugin to do this. If I get the plugin working, I’m still not sure this would be enough to connect auth0 with WP API. I can’t seem to understand whether this would be “Machine to Machine” type of connection. This type of connection requires auth0 specific SDK which I guess is not implemented in any of the WP plugins.
Thanks for any help or advice you can provide on this.