diff --git a/src/pages/Auth/Login/index.tsx b/src/pages/Auth/Login/index.tsx index 9ae9151..f8ef75b 100644 --- a/src/pages/Auth/Login/index.tsx +++ b/src/pages/Auth/Login/index.tsx @@ -4,7 +4,7 @@ import { useMutation } from '@apollo/client'; import { useHistory } from 'react-router'; import { useState } from 'react'; import { tokenVar, roleVar, userVar } from '../../../graphql/state'; -import { Google, Login as LoginIllustration, Logo } from '../../../assets'; +import { Login as LoginIllustration, Logo } from '../../../assets'; import { Alert, Box, Button, Input, Link, Text } from '../../../components'; import { theme } from '../../../themes'; import { Wrapper } from './styles'; @@ -38,6 +38,7 @@ const Login = () => { } tokenVar(token); userVar(user); + localStorage.setItem('token', token); history.push('/'); }, onError({ graphQLErrors }) { @@ -134,13 +135,13 @@ const Login = () => { loading={loading} disabled={loading} /> -