I know that's is old, but this is the answer at the time that it works:
first import your createApi function name:
import {
usersApi,
} from "../components/store/service/UsersData";
and after that call this after login(or wherever you want):
usersApi.util.resetApiState()