Skip to content

Commit

Permalink
fix: add await keyword in getCookie
Browse files Browse the repository at this point in the history
  • Loading branch information
yougyung committed May 24, 2024
1 parent 320f45b commit 4c46a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/business/user/user.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function fetchUserInfo() {
try {
const { data } = await axios<InitUserInfoResponse | UserInfoResponse>(API_PATH.user, {
headers: {
Authorization: `Bearer ${getToken()}`,
Authorization: `Bearer ${await getToken()}`,
},
});

Expand Down

0 comments on commit 4c46a56

Please sign in to comment.