title: The right way to use conditional header in rtk query?
body: <p>I use rtk query and I want to pass header authentication for all of request except refresh token without header and this is my code is there a way to have condition or pass header to be empty? or can I have 2 fetchBaseQuery one for wieth header and other for refresh request?</p>
  <pre><code> const baseQuery = fetchBaseQuery({
      baseUrl: 'https://xr1.bernetco.ir/api/v1/',
      prepareHeaders: (headers, { getState }) =&gt; {
          const user = (getState() as RootState).user.currentUser
  
          if (user) {
              headers.set('Authorization', `Bearer ${user.token.access}`)
          }
          return headers
      },
      credentials: 'include', // This allows server to set cookies
  })
  
  const baseQueryWithReauth: BaseQueryFn&lt;string | FetchArgs, unknown, FetchBaseQueryError&gt; = async (
      args,
      api,
      extraOptions
  ) =&gt; {
      let result = await baseQuery(args, api, extraOptions)
      if (result.error &amp;&amp; result.error.status === 401) {
          // try to get a new token
  
          const user = (api.getState() as RootState).user.currentUser
          const refreshResult = await baseQuery(
              { url: '/refresh-token/', method: 'POST', body: { refresh: user.token.refresh ?? '' } },
              api,
              extraOptions
          )
          
          
          const response = refreshResult.data as any
          if (response) {
              // store the new token
              api.dispatch(setCurrentUser(response.result))
              // retry the initial query
              result = await baseQuery(args, api, extraOptions)
          } else {
              api.dispatch(setCurrentUser(null))
          }
      }
      return result
  }
  </code></pre>