mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-18 07:26:03 +00:00
- update FirebaseTest.kt local host
Took 9 minutes
This commit is contained in:
@@ -61,11 +61,16 @@ open class FirebaseTest<T : BaseActivity<*>>(
|
||||
|
||||
// remove the user we created for testing
|
||||
suspend fun removeUser() {
|
||||
getEmail()?.let {
|
||||
if (firebaseAuthSource.getUser() == null) firebaseAuthSource.signIn(email = it, password = USER_PASSWORD).await()
|
||||
firebaseAuthSource.reauthenticate(it, USER_PASSWORD).await()
|
||||
firebaseAuthSource.deleteProfile().await()
|
||||
try {
|
||||
getEmail()?.let {
|
||||
if (firebaseAuthSource.getUser() == null) firebaseAuthSource.signIn(email = it, password = USER_PASSWORD).await()
|
||||
firebaseAuthSource.reauthenticate(it, USER_PASSWORD).await()
|
||||
firebaseAuthSource.deleteProfile().await()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun generateEmailAddress(): String {
|
||||
|
||||
Reference in New Issue
Block a user