-
@RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP) public final class ProviderUtils
-
-
Method Summary
Modifier and Type Method Description static AuthCredentialgetAuthCredential(IdpResponse response)static StringidpResponseToAccountType(@Nullable() IdpResponse response)static StringsignInMethodToProviderId(@NonNull() String method)static StringproviderIdToAccountType(@NonNull() String providerId)Translate a Firebase Auth provider ID (such as PROVIDER_ID) to aCredentials API account type. static StringaccountTypeToProviderId(@NonNull() String accountType)static StringproviderIdToProviderName(@NonNull() String providerId)static AuthUI.IdpConfiggetConfigFromIdps(List<AuthUI.IdpConfig> idps, String id)static AuthUI.IdpConfiggetConfigFromIdpsOrThrow(List<AuthUI.IdpConfig> idps, String id)static Task<List<String>>fetchSortedProviders(@NonNull() FirebaseAuth auth, @NonNull() FlowParameters params, @NonNull() String email)static Task<String>fetchTopProvider(@NonNull() FirebaseAuth auth, @NonNull() FlowParameters params, @NonNull() String email)-
-
Method Detail
-
getAuthCredential
@Nullable() static AuthCredential getAuthCredential(IdpResponse response)
-
idpResponseToAccountType
@Nullable() static String idpResponseToAccountType(@Nullable() IdpResponse response)
-
signInMethodToProviderId
@NonNull() static String signInMethodToProviderId(@NonNull() String method)
-
providerIdToAccountType
static String providerIdToAccountType(@NonNull() String providerId)
Translate a Firebase Auth provider ID (such as PROVIDER_ID) to aCredentials API account type.
-
accountTypeToProviderId
static String accountTypeToProviderId(@NonNull() String accountType)
-
providerIdToProviderName
static String providerIdToProviderName(@NonNull() String providerId)
-
getConfigFromIdps
@Nullable() static AuthUI.IdpConfig getConfigFromIdps(List<AuthUI.IdpConfig> idps, String id)
-
getConfigFromIdpsOrThrow
@NonNull() static AuthUI.IdpConfig getConfigFromIdpsOrThrow(List<AuthUI.IdpConfig> idps, String id)
-
fetchSortedProviders
static Task<List<String>> fetchSortedProviders(@NonNull() FirebaseAuth auth, @NonNull() FlowParameters params, @NonNull() String email)
-
fetchTopProvider
static Task<String> fetchTopProvider(@NonNull() FirebaseAuth auth, @NonNull() FlowParameters params, @NonNull() String email)
-
-
-
-