I mean, yeah, sure. Or for a number of other use-cases. I'd argue the best way is for the client to keep the token in memory over local storage. Of course if you have a tightly coupled app, session-based secure cookie is the best.
If there’s a use case to keep session tokens in localstorage, it’s insecure design that’s inherently vulnerable.