missing await

sign out on catch
This commit is contained in:
Miodec 2022-03-04 19:21:06 +01:00
parent bef07017b9
commit 1c2c5991d3

View file

@ -407,7 +407,7 @@ export async function signInWithGoogle() {
}
//create database object for the new user
// try {
const response = Ape.users.create(name);
const response = await Ape.users.create(name);
if (response.status !== 200) {
throw response;
}
@ -459,6 +459,7 @@ export async function signInWithGoogle() {
await Ape.users.delete();
await signedInUser.user.delete();
}
signOut();
return;
}
}