Skip to content

Commit

Permalink
Feat: refreshToken API 요청
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 10, 2023
1 parent 7e23164 commit 3fa1317
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/api/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,10 @@ export const credentialsSignupAPI = async ({
const result = await defaultInstance.post('members/signup', sendSignupData);
return result.data;
};

export const refreshAccessToken = async (refreshToken: string) => {
const result = await defaultInstance.post('members/refreshToken', { refreshToken });
console.log('refresh', result.data.accessToken);

return result.data.accessToken;
};

0 comments on commit 3fa1317

Please sign in to comment.