Solutionunvalidated
Fetch the token with proper `await` (assign the resolved token value) and ensure the middleware pauses until the token is retrieved before allowing RTK-Query to continue. Also unconditionally `return next(action)` so middleware chaining and timing behave correctly.
217a33b3-1b1c-40bd-bc0d-27dee56dc183
Fetch the token with proper await (assign the resolved token value) and ensure the middleware pauses until the token is retrieved before allowing RTK-Query to continue. Also unconditionally return next(action) so middleware chaining and timing behave correctly.