We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416ff70 commit ec044c3Copy full SHA for ec044c3
src/lib/interceptors/DefaultRequestInterceptor.ts
@@ -10,9 +10,11 @@ export async function DefaultRequestInterceptor(config: InternalAxiosRequestConf
10
config.headers.Accept = 'application/json'
11
}
12
13
- const token = await getUserToken()
14
- if (token) {
15
- config.headers.Authorization = `Bearer ${token}`
+ if (config.url?.startsWith('/engine/')) {
+ const token = await getUserToken()
+ if (token) {
16
+ config.headers.Authorization = `Bearer ${token}`
17
+ }
18
19
20
0 commit comments