{"size": 557, "ext": "js", "max_stars_repo_path": "client/src/features/Auth/authSlice.js", "max_stars_repo_name": "skagre/parkcuc", "max_stars_repo_stars_event_min_datetime": "2021-01-24T18:45:35.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-24T18:45:35.000Z", "max_issues_repo_path": "client/src/features/Auth/authSlice.js", "max_issues_repo_name": "skagre/parkcuc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/features/Auth/authSlice.js", "max_forks_repo_name": "skagre/parkcuc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.5238095238, "max_line_length": 90, "alphanum_fraction": 0.7055655296}
import {createAsyncThunk, createSlice} from '@reduxjs/toolkit'
import authApi from 'api/authApi'


export const loginAPI = createAsyncThunk('auth/login', async (params, thunkAPI) => {
    return await authApi.login({ params })
})

export const registerAPI = createAsyncThunk('auth/register', async (params, thunkAPI) => {
    return await authApi.register({ params })
})

const authSlice = createSlice({
    name: 'auth',
    initialState: {},
    reducers: {},
    extraReducers: {}
})

const { reducer: authReducer } = authSlice
export default authReducer