@@ -1061,6 +1061,22 @@ protected OidcProviderConfig execute() throws FirebaseAuthException {
1061
1061
};
1062
1062
}
1063
1063
1064
+ /**
1065
+ * Gets a page of OIDC Auth provider configs starting from the specified {@code pageToken}. Page
1066
+ * size will be limited to 100 provider configs.
1067
+ *
1068
+ * @param pageToken A non-empty page token string, or null to retrieve the first page of provider
1069
+ * configs.
1070
+ * @return A {@link ListProviderConfigsPage} instance.
1071
+ * @throws IllegalArgumentException If the specified page token is empty
1072
+ * @throws FirebaseAuthException If an error occurs while retrieving provider config data.
1073
+ */
1074
+ public ListProviderConfigsPage <OidcProviderConfig > listOidcProviderConfigs (
1075
+ @ Nullable String pageToken ) throws FirebaseAuthException {
1076
+ int maxResults = FirebaseUserManager .MAX_LIST_PROVIDER_CONFIGS_RESULTS ;
1077
+ return listOidcProviderConfigsOp (pageToken , maxResults ).call ();
1078
+ }
1079
+
1064
1080
/**
1065
1081
* Gets a page of OIDC Auth provider configs starting from the specified {@code pageToken}.
1066
1082
*
@@ -1071,7 +1087,7 @@ protected OidcProviderConfig execute() throws FirebaseAuthException {
1071
1087
* @return A {@link ListProviderConfigsPage} instance.
1072
1088
* @throws IllegalArgumentException If the specified page token is empty, or max results value is
1073
1089
* invalid.
1074
- * @throws FirebaseAuthException If an error occurs while retrieving user data.
1090
+ * @throws FirebaseAuthException If an error occurs while retrieving provider config data.
1075
1091
*/
1076
1092
public ListProviderConfigsPage <OidcProviderConfig > listOidcProviderConfigs (
1077
1093
@ Nullable String pageToken , int maxResults ) throws FirebaseAuthException {
@@ -1091,9 +1107,8 @@ public ListProviderConfigsPage<OidcProviderConfig> listOidcProviderConfigs(
1091
1107
*/
1092
1108
public ApiFuture <ListProviderConfigsPage <OidcProviderConfig >> listOidcProviderConfigsAsync (
1093
1109
@ Nullable String pageToken ) {
1094
- return listOidcProviderConfigsAsync (
1095
- pageToken ,
1096
- FirebaseUserManager .MAX_LIST_PROVIDER_CONFIGS_RESULTS );
1110
+ int maxResults = FirebaseUserManager .MAX_LIST_PROVIDER_CONFIGS_RESULTS ;
1111
+ return listOidcProviderConfigsAsync (pageToken , maxResults );
1097
1112
}
1098
1113
1099
1114
/**
0 commit comments