I have custom plugin. And need to get JWT token to fetch data.
Of course I can hardcode some token. But it could be exposed to the rest of the world. So it is important to use token of logged in user.
So how to fetch and get auth token in react (custom plugin)?