public final class ProviderUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
accountTypeToProviderId(String accountType) |
static com.google.android.gms.tasks.Task<List<String>> |
fetchSortedProviders(com.google.firebase.auth.FirebaseAuth auth,
FlowParameters params,
String email) |
static com.google.android.gms.tasks.Task<String> |
fetchTopProvider(com.google.firebase.auth.FirebaseAuth auth,
FlowParameters params,
String email) |
static com.google.firebase.auth.AuthCredential |
getAuthCredential(IdpResponse response) |
static AuthUI.IdpConfig |
getConfigFromIdps(List<AuthUI.IdpConfig> idps,
String id) |
static AuthUI.IdpConfig |
getConfigFromIdpsOrThrow(List<AuthUI.IdpConfig> idps,
String id) |
static String |
idpResponseToAccountType(IdpResponse response) |
static String |
providerIdToAccountType(String providerId)
Translate a Firebase Auth provider ID (such as
GoogleAuthProvider.PROVIDER_ID) to a
Credentials API account type (such as IdentityProviders.GOOGLE). |
static String |
providerIdToProviderName(String providerId) |
static String |
signInMethodToProviderId(String method) |
@Nullable public static com.google.firebase.auth.AuthCredential getAuthCredential(IdpResponse response)
@Nullable public static String idpResponseToAccountType(@Nullable IdpResponse response)
@NonNull public static String signInMethodToProviderId(@NonNull String method)
public static String providerIdToAccountType(@NonNull String providerId)
GoogleAuthProvider.PROVIDER_ID) to a
Credentials API account type (such as IdentityProviders.GOOGLE).@Nullable public static AuthUI.IdpConfig getConfigFromIdps(List<AuthUI.IdpConfig> idps, String id)
@NonNull public static AuthUI.IdpConfig getConfigFromIdpsOrThrow(List<AuthUI.IdpConfig> idps, String id)
public static com.google.android.gms.tasks.Task<List<String>> fetchSortedProviders(@NonNull com.google.firebase.auth.FirebaseAuth auth, @NonNull FlowParameters params, @NonNull String email)
public static com.google.android.gms.tasks.Task<String> fetchTopProvider(@NonNull com.google.firebase.auth.FirebaseAuth auth, @NonNull FlowParameters params, @NonNull String email)