WSL2 still does not support USB devices, but with a little effort we can make possible to flash and monitor ESP device from WSL2.
TLDR: JWTs should not be used for keeping your user logged in. They are not designed for this purpose, they are not secure, and there is a much better tool which is designed for it: regular cookie sessions.
If you've got a bit of time to watch a presentation on it, I highly recommend this talk: https://www.youtube.com/watch?v=pYeekwv3vC4 (Note that other topics are largely skimmed over, such as CSRF protection. You should learn about other topics from other sources. Also note that "valid" usecases for JWTs at the end of the video can also be easily handled by other, better, and more secure tools. Specifically, PASETO.)
A related topic: Don't use localStorage (or sessionStorage) for authentication credentials, including JWT tokens: https://www.rdegges.com/2018/please-stop-using-local-storage/
The reason to avoid JWTs comes down to a couple different points:
| #define SCL TRISB4 // I2C bus | |
| #define SDA TRISB1 // | |
| #define SCL_IN RB4 // | |
| #define SDA_IN RB1 // | |
| // initialize | |
| SDA = SCL = 1 ; | |
| SCL_IN = SDA_IN = 0 ; | |
| // make master wait |