Custom Auth and Magic Variable for OpenAPI

So I'm trying to build a custom auth for one of the services that expose an openapi documentation. Everything seems to be working fine with the flow of auth but the magic variable set in the end is not being propagated to the default headers set for the resource.

This is the resource config:

And this is the output when trying to use the resource:

I've tried many other variable names but without success.

Duplicate of: Environment variable not working in header - #2 by HashNotAdam