Skip to content

Commit 3c559ba

Browse files
committed
feat: accessToken 갱신 API 구현
1 parent 70c75e1 commit 3c559ba

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

api/auth.api.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,16 @@ async function postSignIn({
5353
return response.data;
5454
}
5555

56-
export { postSignUp, postSignIn };
56+
async function postRefresh({ refreshToken }: { refreshToken: string }) {
57+
const response = await axios({
58+
method: "post",
59+
url: "/auth/refresh-token",
60+
data: {
61+
refreshToken,
62+
},
63+
});
64+
return response.data;
65+
}
66+
67+
export { postSignUp, postSignIn, postRefresh };
5768
export type { SignUpParams, SignInParams, AuthResponse };

0 commit comments

Comments
 (0)