Fix build warnings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Button, Container, CssBaseline, Grid, Link, Typography } from '@material-ui/core';
|
||||
import { Button, Container, CssBaseline, Grid, Typography } from '@material-ui/core';
|
||||
import { DropzoneAreaBase } from 'material-ui-dropzone';
|
||||
import { useUserContext } from '../Contexts/UserContext';
|
||||
import useStyles from '../Styles';
|
||||
|
||||
@@ -22,7 +22,7 @@ export const UserProvider = ({ children }) => {
|
||||
await signOut();
|
||||
}
|
||||
};
|
||||
verifyToken();
|
||||
verifyToken(jwtToken);
|
||||
return () => {};
|
||||
}, []);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const AUTH_URL = 'https://dev-auth.fiskerdps.com';
|
||||
|
||||
export default {
|
||||
const auth = {
|
||||
signIn: (username, password) => fetch(`${AUTH_URL}/auth/login`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
@@ -30,4 +30,6 @@ export default {
|
||||
},
|
||||
body: JSON.stringify({ token: jwt })
|
||||
}).then((response) => response.json()),
|
||||
}
|
||||
};
|
||||
|
||||
export default auth;
|
||||
|
||||
Reference in New Issue
Block a user