How is JWT authorization header added in a Remix template?

In the Shopify Remix template, how is the JWT authorization header being added to every new page request?

I’ve looked through the source code and I cant see where it is happening.

It seems like Remix doesn’t support middleware yet but it somehow seems like a new token is added automatically on every page load.