We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c75e1 commit 3c559baCopy full SHA for 3c559ba
api/auth.api.tsx
@@ -53,5 +53,16 @@ async function postSignIn({
53
return response.data;
54
}
55
56
-export { postSignUp, postSignIn };
+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 };
68
export type { SignUpParams, SignInParams, AuthResponse };
0 commit comments