From 6f39efd21fff23fef25ea7c400ec1d368bd5c789 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Mon, 13 Jan 2025 23:44:24 +0330 Subject: [PATCH] Add sign in response type --- frontend/composables/api/auth/useSignIn.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/composables/api/auth/useSignIn.ts b/frontend/composables/api/auth/useSignIn.ts index 4d5d93a..60eeb7e 100644 --- a/frontend/composables/api/auth/useSignIn.ts +++ b/frontend/composables/api/auth/useSignIn.ts @@ -10,6 +10,12 @@ export type SignInRequest = { phone: string; }; +export type SignInResponse = { + access: string, + refresh: string, +}; + + const useSignIn = () => { // state @@ -19,7 +25,7 @@ const useSignIn = () => { // methods const handleSignIn = async (variables: SignInRequest) => { - const { data } = await axios.post(`${API_ENDPOINTS.auth.signin}/`, variables); + const { data } = await axios.post(`${API_ENDPOINTS.auth.signin}/`, variables); return data; };