1

I'm developing a Chrome extension and I want my users to authenticate via my WP login page.
I configured JWT Authentication for WP Rest API.
I want the users to go to my website, login, and then have the generated JWT token save automatically in the client browser's cookies (or local storage) so I can grab it from my extension's script, and validate it when fetching requests.

Right now, when I login/logout and track my local storage and cookies, I don't see it being saved anywhere.
How can I do this?
Also, is this the right approach, or am I missing something?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.