소스 검색

fix: login call fix

Oleksandr Honcharov 1 년 전
부모
커밋
2dd6730739
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/auth/api/auth-api.tsx

+ 1 - 1
src/modules/auth/api/auth-api.tsx

@@ -15,7 +15,7 @@ export interface PostRegisterUserReturn extends ResponseType {
 
 export const authApi = {
   loginUser: (data: { login: string; pass: string }) =>
-    request.post<PostLoginUserReturn>(API.LOGIN, data),
+    request.postForm<PostLoginUserReturn>(API.LOGIN, data),
   registerUser: (data: UserRegistrationData) => {
     const formData = new FormData();