60 lines
1.8 KiB
Java
60 lines
1.8 KiB
Java
package com.google.android.gms.internal.p002firebaseauthapi;
|
|
|
|
import com.google.android.gms.common.util.Strings;
|
|
import com.huawei.hms.support.feature.result.CommonConstant;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzabh implements zzxn {
|
|
private static final String zza = "zzabh";
|
|
private String zzb;
|
|
private String zzc;
|
|
private long zzd;
|
|
private String zze;
|
|
private boolean zzf;
|
|
private String zzg;
|
|
private String zzh;
|
|
|
|
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzxn
|
|
public final /* synthetic */ zzxn zza(String str) throws zzvg {
|
|
try {
|
|
JSONObject jSONObject = new JSONObject(str);
|
|
this.zzb = Strings.emptyToNull(jSONObject.optString(CommonConstant.KEY_ID_TOKEN, null));
|
|
this.zzc = Strings.emptyToNull(jSONObject.optString("refreshToken", null));
|
|
this.zzd = jSONObject.optLong("expiresIn", 0L);
|
|
this.zze = Strings.emptyToNull(jSONObject.optString("localId", null));
|
|
this.zzf = jSONObject.optBoolean("isNewUser", false);
|
|
this.zzg = Strings.emptyToNull(jSONObject.optString("temporaryProof", null));
|
|
this.zzh = Strings.emptyToNull(jSONObject.optString("phoneNumber", null));
|
|
return this;
|
|
} catch (NullPointerException | JSONException e) {
|
|
throw zzabk.zza(e, zza, str);
|
|
}
|
|
}
|
|
|
|
public final boolean zzg() {
|
|
return this.zzf;
|
|
}
|
|
|
|
public final String zzf() {
|
|
return this.zzg;
|
|
}
|
|
|
|
public final String zze() {
|
|
return this.zzc;
|
|
}
|
|
|
|
public final String zzd() {
|
|
return this.zzh;
|
|
}
|
|
|
|
public final String zzc() {
|
|
return this.zzb;
|
|
}
|
|
|
|
public final long zzb() {
|
|
return this.zzd;
|
|
}
|
|
}
|