Skip to content
Snippets Groups Projects

feat(overlays): MIN-191 add possibility to login

Merged mateusz-winiarczyk requested to merge MIN-191-add-possibility-to-login into development
6 unresolved threads
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -10,7 +10,10 @@ export const login = createAsyncThunk(
'user/login',
async (credentials: { login: string; password: string }, { dispatch }) => {
const searchParams = new URLSearchParams(credentials);
const response = await axiosInstance.post(apiPath.postLogin(), searchParams);
const response = await axiosInstance.post(apiPath.postLogin(), searchParams, {
withCredentials: true,
});
const isDataValid = validateDataUsingZodSchema(response.data, loginSchema);
dispatch(closeModal());
Loading