```js Hub.listen('auth', async (data) => { if (data.payload.event === 'signOut') { await DataStore.clear(); } }); ```