Fixed the issue with credential argument type in createSlice method