diff --git a/frontend/composables/api/auth/useSignIn.ts b/frontend/composables/api/auth/useSignIn.ts index 60eeb7e..92f68e3 100644 --- a/frontend/composables/api/auth/useSignIn.ts +++ b/frontend/composables/api/auth/useSignIn.ts @@ -11,13 +11,11 @@ export type SignInRequest = { }; export type SignInResponse = { - access: string, - refresh: string, + access: string; + refresh: string; }; - const useSignIn = () => { - // state const { $axios: axios } = useNuxtApp(); @@ -25,12 +23,15 @@ 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; }; return useMutation({ - mutationFn: (variables: SignInRequest) => handleSignIn(variables) + mutationFn: (variables: SignInRequest) => handleSignIn(variables), }); };