alexmngn / react-native-authentication

492 stars 155 forks source link

The "clearSession" It's not cleaning #9

Open rochapablo opened 7 years ago

rochapablo commented 7 years ago

When I call

export const destroy = () => clearSession()
const clearSession = () => {
  clearTimeout(sessionTimeout)
  store.dispatch(actionCreators.update(initialState))
}

inside my component, the session still existing.

What am I doing wrong?