File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ startActivityForResult(
156
156
RC_SIGN_IN );
157
157
```
158
158
159
+ To enable all supported providers in their basic configuration,
160
+ use ` setProviders(AuthUI.ALL_PROVIDERS) `
161
+
159
162
If a terms of service URL and a custom theme are required:
160
163
161
164
``` java
Original file line number Diff line number Diff line change @@ -265,6 +265,16 @@ public class AuthUI {
265
265
TWITTER_PROVIDER
266
266
)));
267
267
268
+ /**
269
+ * The list of all supported authentication providers in Firebase Auth UI in their basic
270
+ * {@link IdpConfig} form.
271
+ */
272
+ public static final List <IdpConfig > ALL_PROVIDERS =
273
+ Arrays .asList (new AuthUI .IdpConfig .Builder (AuthUI .EMAIL_PROVIDER ).build (),
274
+ new AuthUI .IdpConfig .Builder (AuthUI .GOOGLE_PROVIDER ).build (),
275
+ new AuthUI .IdpConfig .Builder (AuthUI .FACEBOOK_PROVIDER ).build (),
276
+ new AuthUI .IdpConfig .Builder (AuthUI .TWITTER_PROVIDER ).build ());
277
+
268
278
private static final IdentityHashMap <FirebaseApp , AuthUI > INSTANCES = new IdentityHashMap <>();
269
279
270
280
private final FirebaseApp mApp ;
You can’t perform that action at this time.
0 commit comments