mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-29 19:31:19 -04:00
Apply suggestion from @MartinBraquet
This commit is contained in:
committed by
Okechi Jones-Williams
parent
90c3f22a2c
commit
3918830fb6
@@ -13,7 +13,7 @@ export async function deleteUser(
|
||||
let loginInfo
|
||||
if (authType === 'Email/Password') {
|
||||
loginInfo = await firebaseLoginEmailPassword(account?.email, account?.password)
|
||||
await deleteAccount(loginInfo?.data.idToken)
|
||||
await deleteAccount(loginInfo?.data.idToken)
|
||||
await deleteFromDb(loginInfo?.data.localId)
|
||||
} else if (authType === 'Google' && authInfo) {
|
||||
await deleteAccount(authInfo.idToken)
|
||||
|
||||
Reference in New Issue
Block a user