Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5755 Rev 5758
Línea 14... Línea 14...
14
      .get('/signin', {
14
      .get('/signin', {
15
        headers: {
15
        headers: {
16
          'Content-Type': 'application/json',
16
          'Content-Type': 'application/json',
17
        },
17
        },
18
      })
18
      })
19
      .then(({ data: response }) => {
19
      .then(({ data: response }) => setAuthProps(response))
20
        const { success, data } = response
-
 
21
        if (!success) {
-
 
22
          return false
-
 
23
        }
-
 
24
 
-
 
25
        setAuthProps(data)
-
 
26
      })
-
 
27
      .catch((err) => console.log(err))
20
      .catch((err) => console.log(err))
28
  }, [])
21
  }, [])
Línea 29... Línea 22...
29
 
22
 
30
  return (
23
  return (