Updated dependencies, addressed #33

This commit is contained in:
2022-05-30 06:10:01 +01:00
parent 22703bfbcb
commit d44cae397d
19 changed files with 2430 additions and 2790 deletions
+1 -5
View File
@@ -24,10 +24,7 @@ const Account = props => {
//grab the user's info
useEffect(() => {
authTokens.tokenFetch(`${process.env.AUTH_URI}/auth/account`, {
method: 'GET',
headers: {
'Access-Control-Allow-Origin': '*'
}
method: 'GET'
})
.then(blob => blob.json())
.then(json => contactRef.current.checked = json.contact)
@@ -88,7 +85,6 @@ const update = async (password, retype, contact, tokenFetch) => {
const result = await tokenFetch(`${process.env.AUTH_URI}/auth/account`, {
method: 'PATCH',
headers: {
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json'
},
body: JSON.stringify({