MCPcopy Create free account
hub / github.com/alan2207/bulletproof-react / authRequestInterceptor

Function authRequestInterceptor

apps/react-vite/src/lib/api-client.ts:7–14  ·  view source on GitHub ↗
(config: InternalAxiosRequestConfig)

Source from the content-addressed store, hash-verified

5import { paths } from '@/config/paths';
6
7function authRequestInterceptor(config: InternalAxiosRequestConfig) {
8 if (config.headers) {
9 config.headers.Accept = 'application/json';
10 }
11
12 config.withCredentials = true;
13 return config;
14}
15
16export const api = Axios.create({
17 baseURL: env.API_URL,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected