Skip to content

Commit

Permalink
fix axios type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Jan 3, 2023
1 parent 63084ee commit d342c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/services/axios.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import env from '@beam-australia/react-env';
import _axios from 'axios';
import _axios, { RawAxiosRequestHeaders } from 'axios';
import Router from 'next/router';

import { logout } from '@/store/auth/authSlice';
Expand All @@ -20,7 +20,7 @@ axios.interceptors.request.use((config) => {
const { accessToken } = store.getState().auth;

config.headers = {
...config.headers,
...(config.headers as RawAxiosRequestHeaders),
Authorization: `Bearer ${accessToken}`,
};

Expand Down

0 comments on commit d342c0a

Please sign in to comment.