what-the-bank/sources/com/google/firebase/auth/internal/zzal.java

33 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.auth.internal;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.logging.Logger;
import com.google.android.gms.tasks.Task;
import com.google.firebase.FirebaseApp;
import com.google.firebase.auth.FirebaseAuth;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zzal implements Runnable {
final zzam zza;
private final String zzb;
/* JADX INFO: Access modifiers changed from: package-private */
public zzal(zzam zzamVar, String str) {
this.zza = zzamVar;
this.zzb = Preconditions.checkNotEmpty(str);
}
@Override // java.lang.Runnable
public final void run() {
Logger logger;
FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(FirebaseApp.getInstance(this.zzb));
if (firebaseAuth.getCurrentUser() != null) {
Task accessToken = firebaseAuth.getAccessToken(true);
logger = zzam.zzg;
logger.v("Token refreshing started", new Object[0]);
accessToken.addOnFailureListener(new zzak(this));
}
}
}