Skip to content

Commit

Permalink
feat(web): Add the ability to trigger the API requests that the front…
Browse files Browse the repository at this point in the history
… end can trigger
  • Loading branch information
stack72 committed Jan 26, 2024
1 parent 86400d1 commit 5c171e2
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 5c171e2

Please sign in to comment.