Skip to content

Commit

Permalink
merge: #3219
Browse files Browse the repository at this point in the history
3219: Add ability to trigger API requests from the front end r=stack72 a=stack72



Co-authored-by: stack72 <[email protected]>
  • Loading branch information
si-bors-ng[bot] and stack72 authored Feb 6, 2024
2 parents 7863dea + 5c171e2 commit a59fb5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/web/src/store/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const sdfApiInstance = Axios.create({
},
baseURL: API_HTTP_URL,
});

// eslint-disable-next-line @typescript-eslint/no-explicit-any
if (typeof window !== "undefined") (window as any).sdf = sdfApiInstance;
function injectBearerTokenAuth(config: InternalAxiosRequestConfig) {
// inject auth token from the store as a custom header
const authStore = useAuthStore();
Expand Down

0 comments on commit a59fb5d

Please sign in to comment.