Skip to content

Commit

Permalink
chore: role on sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheusafonsouza committed Jan 10, 2025
1 parent 42dcf60 commit 258947b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/useApi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
});
Expand Down

0 comments on commit 258947b

Please sign in to comment.