diff --git a/src/hooks/useApi/index.tsx b/src/hooks/useApi/index.tsx index c2a3883..4ce9aef 100644 --- a/src/hooks/useApi/index.tsx +++ b/src/hooks/useApi/index.tsx @@ -66,7 +66,10 @@ const useApi = () => { } }> => { return new Promise((resolve) => { api - .post('/auth/signin', data) + .post('/auth/signin', { + ...data, + role: 'user', + }) .then((res) => resolve(res)) .catch((err) => resolve(getDefaultErrorUseAPIMessage(err))); });