deps: upgrade all dependencies

This commit is contained in:
Jordan Knott
2021-05-02 17:31:24 -05:00
parent 5a9a66effe
commit 8c6a3db0bc
22 changed files with 5162 additions and 4850 deletions

View File

@ -9,6 +9,7 @@ const Auth = () => {
const history = useHistory();
const location = useLocation<{ redirect: string } | undefined>();
const { setUser } = useContext(UserContext);
console.log('auth');
const login = (
data: LoginFormData,
setComplete: (val: boolean) => void,
@ -21,7 +22,7 @@ const Auth = () => {
username: data.username,
password: data.password,
}),
}).then(async x => {
}).then(async (x) => {
if (x.status === 401) {
setInvalidLoginAttempt(invalidLoginAttempt + 1);
setError('username', { type: 'error', message: 'Invalid username' });
@ -44,7 +45,7 @@ const Auth = () => {
fetch('/auth/validate', {
method: 'POST',
credentials: 'include',
}).then(async x => {
}).then(async (x) => {
const response = await x.json();
const { valid, userID } = response;
if (valid) {