@@ -1198,6 +1198,22 @@ protected OidcProviderConfig execute() throws FirebaseAuthException {
1198
1198
};
1199
1199
}
1200
1200
1201
+ /**
1202
+ * Gets a page of OIDC Auth provider configs starting from the specified {@code pageToken}. Page
1203
+ * size will be limited to 100 provider configs.
1204
+ *
1205
+ * @param pageToken A non-empty page token string, or null to retrieve the first page of provider
1206
+ * configs.
1207
+ * @return A {@link ListProviderConfigsPage} instance.
1208
+ * @throws IllegalArgumentException If the specified page token is empty
1209
+ * @throws FirebaseAuthException If an error occurs while retrieving provider config data.
1210
+ */
1211
+ public ListProviderConfigsPage <OidcProviderConfig > listOidcProviderConfigs (
1212
+ @ Nullable String pageToken ) throws FirebaseAuthException {
1213
+ int maxResults = FirebaseUserManager .MAX_LIST_PROVIDER_CONFIGS_RESULTS ;
1214
+ return listOidcProviderConfigsOp (pageToken , maxResults ).call ();
1215
+ }
1216
+
1201
1217
/**
1202
1218
* Gets a page of OIDC Auth provider configs starting from the specified {@code pageToken}.
1203
1219
*
@@ -1208,7 +1224,7 @@ protected OidcProviderConfig execute() throws FirebaseAuthException {
1208
1224
* @return A {@link ListProviderConfigsPage} instance.
1209
1225
* @throws IllegalArgumentException If the specified page token is empty, or max results value is
1210
1226
* invalid.
1211
- * @throws FirebaseAuthException If an error occurs while retrieving user data.
1227
+ * @throws FirebaseAuthException If an error occurs while retrieving provider config data.
1212
1228
*/
1213
1229
public ListProviderConfigsPage <OidcProviderConfig > listOidcProviderConfigs (
1214
1230
@ Nullable String pageToken , int maxResults ) throws FirebaseAuthException {
@@ -1228,9 +1244,8 @@ public ListProviderConfigsPage<OidcProviderConfig> listOidcProviderConfigs(
1228
1244
*/
1229
1245
public ApiFuture <ListProviderConfigsPage <OidcProviderConfig >> listOidcProviderConfigsAsync (
1230
1246
@ Nullable String pageToken ) {
1231
- return listOidcProviderConfigsAsync (
1232
- pageToken ,
1233
- FirebaseUserManager .MAX_LIST_PROVIDER_CONFIGS_RESULTS );
1247
+ int maxResults = FirebaseUserManager .MAX_LIST_PROVIDER_CONFIGS_RESULTS ;
1248
+ return listOidcProviderConfigsAsync (pageToken , maxResults );
1234
1249
}
1235
1250
1236
1251
/**
0 commit comments