How do I get my JWT token inside my custom plugin?

Here is a quick and dirty way you can get it.

const getToken = () => {
    return `Bearer ${JSON.parse(window.sessionStorage.jwtToken)}`;
}

You can get it straight from the browser.