Expo eject clears redux-persist store

Hello everyone,

I hope you guys can help me with this issue. I was running an EXPO managed project, when I then decided to do a expo eject to run bare flow for some other reasons. ejecting was not a problem everything was running smooth until I found out that my persist:root was null but my token, which I just saved directly using Asyncstorage was still there.

{token: “ldjfdlksf”, persist:root: null}

Anyone who knows what to do here? it is a problem that my redux states are set back to default.

const rootReducer = (state, action) => {
	if (action.type === 'USER_LOGOUT') {
		AsyncStorage.removeItem('persist:root')
		AsyncStorage.removeItem('token')
		state = undefined
	}

	return appReducer(state, action)
}

const persistConfig = {
	key: 'root',
	storage: AsyncStorage
}