Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3400 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3400 Rev 3407
Línea 20... Línea 20...
20
  type: actionsTypes.STOP_LOADING
20
  type: actionsTypes.STOP_LOADING
21
})
21
})
Línea 22... Línea 22...
22
 
22
 
23
export const logout = () => {
23
export const logout = () => {
24
  return (dispatch) => {
-
 
25
    window.localStorage.removeItem('jwt')
24
  return (dispatch) => {
26
    dispatch(removeAuth())
25
    dispatch(removeAuth())
27
  }
26
  }
Línea 28... Línea 27...
28
}
27
}
Línea 36... Línea 35...
36
    const isIOS = isIOSDevice()
35
    const isIOS = isIOSDevice()
Línea 37... Línea 36...
37
 
36
 
38
    if (!success) {
37
    if (!success) {
39
      throw new Error('Error al cerrar sesión')
38
      throw new Error('Error al cerrar sesión')
40
    }
-
 
41
 
39
    }
Línea -... Línea 40...
-
 
40
    if (isAndroid || isIOS) logoutUserToNative(data.uuid)
42
    if (isAndroid || isIOS) logoutUserToNative(data.uuid)
41
 
Línea 43... Línea 42...
43
 
42
    window.localStorage.removeItem('jwt')
44
    dispatch(logout())
43
    dispatch(logout())
45
 
44