I'm trying to authenticate a resource using custom auth and the configuration looks like this:
In the 2nd API call, I'm getting auth token as part of cookies (X-Auth) in response which I want to pass as a header (X-Auth) in all further API calls in this resource. I've tried using "Define a variable", and forwarding cookies but nothing seems to work. While trying to define a variable I've tried a lot of perm combinations (http2.headers.Set-Cookie[0], http2.headers.Set-Cookie[0].X-Auth, http2.metadata.headers.Set-Cookie[0].X-Auth).
Retool is forwarding auth header as a plain string instead of substituting it with header value.
"request": {
"url": "https://e16f-171-76-12-25.ngrok.io/***",
"method": "GET",
"body": null,
"headers": {
"User-Agent": "Retool/2.0 (+https://docs.tryretool.com/docs/apis)",
"X-Auth": "TOKEN",
"X-Retool-Forwarded-For": "***"
}