Skip to content

Commit

Permalink
Merge pull request #72 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
fix : 토큰 버그 수정
  • Loading branch information
seung365 authored Aug 7, 2024
2 parents b303b0d + dde6e96 commit 47a9e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/hooks/Mail/usePostMail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { BASE_URL } from '../..';
import { useMutation } from '@tanstack/react-query';

export const postMailPath = () => `${BASE_URL}/save-email`;
const token = sessionStorage.getItem('accessToken');

const apiClient = axios.create({
baseURL: BASE_URL,
headers: {
Authorization: `Bearer ${sessionStorage.getItem('accessToken')}`,
Authorization: `Bearer ${token}`,
},
});

Expand Down

0 comments on commit 47a9e32

Please sign in to comment.