You simply get a bearer token (non JWT) onto the client and use that from local storage instead of a cookie.
Your JavaScript code then makes api calls using the same bearer pathway as other api clients.
The token can still expire, be revoked, etc. it just prevents you having to handle cookie auth on your api.
I remember building a service when I was experimenting with web development that used randomly generated tokens in a custom HTTP header, and that is closer to Bearer Token (the standard) than Bearer Token is to JWT.
The parent comment saying “that sounds like JWT” is implying it’s just as bad or has the same shortfalls as using JWT.