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