@@ -231,7 +231,7 @@ firebaseui.auth.Config.prototype.signInFlow;
231
231
* Determines the list of IdPs for handling federated sign-in, phone number as
232
232
* well as password account sign-up.
233
233
*
234
- * @type {!Array<!firebaseui.auth.SignInOption>|undefined }
234
+ * @type {!Array<!firebaseui.auth.SignInOption|string >|undefined }
235
235
*/
236
236
firebaseui . auth . Config . prototype . signInOptions ;
237
237
@@ -326,20 +326,29 @@ firebaseui.auth.SignInOption = function() {};
326
326
*/
327
327
firebaseui . auth . SignInOption . prototype . provider ;
328
328
329
+ /**
330
+ * Defines the sign-in option needed to configure the FirebaseUI federated
331
+ * sign-in widget.
332
+ *
333
+ * @interface
334
+ * @extends {firebaseui.auth.SignInOption }
335
+ */
336
+ firebaseui . auth . FederatedSignInOption = function ( ) { } ;
337
+
329
338
/**
330
339
* The Auth method (typically the authorization endpoint) needed for one-tap
331
340
* sign-up, eg: 'https://accounts.google.com'.
332
341
*
333
342
* @type {string|undefined }
334
343
*/
335
- firebaseui . auth . SignInOption . prototype . authMethod ;
344
+ firebaseui . auth . FederatedSignInOption . prototype . authMethod ;
336
345
337
346
/**
338
347
* The OAuth client ID needed for one-tap sign-up credential helper.
339
348
*
340
349
* @type {string|undefined }
341
350
*/
342
- firebaseui . auth . SignInOption . prototype . clientId ;
351
+ firebaseui . auth . FederatedSignInOption . prototype . clientId ;
343
352
344
353
/**
345
354
* The list of additional OAuth scopes for the selected provider.
@@ -351,7 +360,7 @@ firebaseui.auth.SignInOption.prototype.clientId;
351
360
*
352
361
* @type {!Array<string>|undefined }
353
362
*/
354
- firebaseui . auth . SignInOption . prototype . scopes ;
363
+ firebaseui . auth . FederatedSignInOption . prototype . scopes ;
355
364
356
365
/**
357
366
* The custom OAuth parameters for the selected OAuth provider.
@@ -365,15 +374,33 @@ firebaseui.auth.SignInOption.prototype.scopes;
365
374
*
366
375
* @type {!Object|undefined }
367
376
*/
368
- firebaseui . auth . SignInOption . prototype . customParameters ;
377
+ firebaseui . auth . FederatedSignInOption . prototype . customParameters ;
378
+
379
+ /**
380
+ * Defines the sign-in option needed to configure the FirebaseUI email sign-in
381
+ * widget.
382
+ *
383
+ * @interface
384
+ * @extends {firebaseui.auth.SignInOption }
385
+ */
386
+ firebaseui . auth . EmailSignInOption = function ( ) { } ;
369
387
370
388
/**
371
389
* Whether to require the display name to be provided for email/password user
372
390
* creation flow.
373
391
*
374
392
* @type {boolean|undefined }
375
393
*/
376
- firebaseui . auth . SignInOption . prototype . requireDisplayName ;
394
+ firebaseui . auth . EmailSignInOption . prototype . requireDisplayName ;
395
+
396
+ /**
397
+ * Defines the sign-in option needed to configure the FirebaseUI phone sign-in
398
+ * widget.
399
+ *
400
+ * @interface
401
+ * @extends {firebaseui.auth.SignInOption }
402
+ */
403
+ firebaseui . auth . PhoneSignInOption = function ( ) { } ;
377
404
378
405
/**
379
406
* The reCAPTCHA parameters needed to customize the reCAPTCHA for phone
@@ -392,14 +419,14 @@ firebaseui.auth.SignInOption.prototype.requireDisplayName;
392
419
* badge: (string|undefined)
393
420
* }|undefined }
394
421
*/
395
- firebaseui . auth . SignInOption . prototype . recaptchaParameters ;
422
+ firebaseui . auth . PhoneSignInOption . prototype . recaptchaParameters ;
396
423
397
424
/**
398
425
* Sets the default country, eg. (GB) for the United Kingdom.
399
426
*
400
427
* @type {string|undefined }
401
428
*/
402
- firebaseui . auth . SignInOption . prototype . defaultCountry ;
429
+ firebaseui . auth . PhoneSignInOption . prototype . defaultCountry ;
403
430
404
431
/**
405
432
* The default national number which will be prefilled when the phone sign-in
@@ -410,7 +437,7 @@ firebaseui.auth.SignInOption.prototype.defaultCountry;
410
437
*
411
438
* @type {string|undefined }
412
439
*/
413
- firebaseui . auth . SignInOption . prototype . defaultNationalNumber ;
440
+ firebaseui . auth . PhoneSignInOption . prototype . defaultNationalNumber ;
414
441
415
442
/**
416
443
* The full phone number string instead of the 'defaultCountry' and
@@ -421,7 +448,7 @@ firebaseui.auth.SignInOption.prototype.defaultNationalNumber;
421
448
*
422
449
* @type {string|undefined }
423
450
*/
424
- firebaseui . auth . SignInOption . prototype . loginHint ;
451
+ firebaseui . auth . PhoneSignInOption . prototype . loginHint ;
425
452
426
453
/**
427
454
* Sets the whitelisted countries. Accept either ISO (alpha-2) or E164 formatted
@@ -432,7 +459,7 @@ firebaseui.auth.SignInOption.prototype.loginHint;
432
459
*
433
460
* @type {!Array<string>|undefined }
434
461
*/
435
- firebaseui . auth . SignInOption . prototype . whitelistedCountries ;
462
+ firebaseui . auth . PhoneSignInOption . prototype . whitelistedCountries ;
436
463
437
464
/**
438
465
* Sets the blacklisted countries. Accept either ISO (alpha-2) or E164 formatted
@@ -443,4 +470,4 @@ firebaseui.auth.SignInOption.prototype.whitelistedCountries;
443
470
*
444
471
* @type {!Array<string>|undefined }
445
472
*/
446
- firebaseui . auth . SignInOption . prototype . blacklistedCountries ;
473
+ firebaseui . auth . PhoneSignInOption . prototype . blacklistedCountries ;
0 commit comments