@@ -185,20 +185,17 @@ export const debugErrorMap: AuthErrorMap;
185
185
// @public
186
186
export function deleteUser(user : User ): Promise <void >;
187
187
188
- // @public (undocumented)
188
+ // @public
189
189
export interface Dependencies {
190
- // (undocumented)
191
190
errorMap? : AuthErrorMap ;
192
- // (undocumented)
193
191
persistence? : Persistence | Persistence [];
194
- // (undocumented)
195
192
popupRedirectResolver? : PopupRedirectResolver ;
196
193
}
197
194
198
195
// @public
199
196
export class EmailAuthCredential extends AuthCredential {
200
- // (undocumented)
201
- readonly email : string ;
197
+ // @internal (undocumented)
198
+ readonly _email : string ;
202
199
// @internal (undocumented)
203
200
static _fromEmailAndCode(email : string , oobCode : string , tenantId ? : string | null ): EmailAuthCredential ;
204
201
// @internal (undocumented)
@@ -210,10 +207,10 @@ export class EmailAuthCredential extends AuthCredential {
210
207
_getReauthenticationResolver(auth : AuthInternal ): Promise <IdTokenResponse >;
211
208
// @internal (undocumented)
212
209
_linkToIdToken(auth : AuthInternal , idToken : string ): Promise <IdTokenResponse >;
213
- // (undocumented)
214
- readonly password : string ;
215
- // (undocumented)
216
- readonly tenantId : string | null ;
210
+ // @internal (undocumented)
211
+ readonly _password : string ;
212
+ // @internal (undocumented)
213
+ readonly _tenantId : string | null ;
217
214
toJSON(): object ;
218
215
}
219
216
@@ -301,7 +298,7 @@ export interface IdTokenResult {
301
298
// @public
302
299
export const indexedDBLocalPersistence: Persistence ;
303
300
304
- // @public (undocumented)
301
+ // @public
305
302
export function initializeAuth(app : FirebaseApp , deps ? : Dependencies ): Auth ;
306
303
307
304
// @public
@@ -397,7 +394,6 @@ export interface OAuthCredentialOptions {
397
394
export class OAuthProvider extends BaseOAuthProvider {
398
395
credential(params : OAuthCredentialOptions ): OAuthCredential ;
399
396
static credentialFromError(error : FirebaseError ): OAuthCredential | null ;
400
- // (undocumented)
401
397
static credentialFromJSON(json : object | string ): OAuthCredential ;
402
398
static credentialFromResult(userCredential : UserCredential ): OAuthCredential | null ;
403
399
}
@@ -460,7 +456,6 @@ export class PhoneAuthCredential extends AuthCredential {
460
456
export class PhoneAuthProvider {
461
457
constructor (auth : Auth );
462
458
static credential(verificationId : string , verificationCode : string ): PhoneAuthCredential ;
463
- // (undocumented)
464
459
static credentialFromResult(userCredential : UserCredential ): AuthCredential | null ;
465
460
static readonly PHONE_SIGN_IN_METHOD = SignInMethod .PHONE ;
466
461
static readonly PROVIDER_ID = ProviderId .PHONE ;
@@ -507,23 +502,17 @@ export const prodErrorMap: AuthErrorMap;
507
502
508
503
// @public
509
504
export const enum ProviderId {
510
- // (undocumented)
505
+ // @internal (undocumented)
511
506
ANONYMOUS = " anonymous" ,
512
- // (undocumented)
507
+ // @internal (undocumented)
513
508
CUSTOM = " custom" ,
514
- // (undocumented)
515
509
FACEBOOK = " facebook.com" ,
516
- // (undocumented)
510
+ // @internal (undocumented)
517
511
FIREBASE = " firebase" ,
518
- // (undocumented)
519
512
GITHUB = " github.com" ,
520
- // (undocumented)
521
513
GOOGLE = " google.com" ,
522
- // (undocumented)
523
514
PASSWORD = " password" ,
524
- // (undocumented)
525
515
PHONE = " phone" ,
526
- // (undocumented)
527
516
TWITTER = " twitter.com"
528
517
}
529
518
@@ -572,11 +561,8 @@ export function reload(user: User): Promise<void>;
572
561
// @public
573
562
export class SAMLAuthProvider extends FederatedAuthProvider {
574
563
constructor (providerId : string );
575
- // (undocumented)
576
564
static credentialFromError(error : FirebaseError ): AuthCredential | null ;
577
- // (undocumented)
578
565
static credentialFromJSON(json : string | object ): AuthCredential ;
579
- // (undocumented)
580
566
static credentialFromResult(userCredential : UserCredential ): AuthCredential | null ;
581
567
}
582
568
@@ -597,21 +583,14 @@ export function signInAnonymously(auth: Auth): Promise<UserCredential>;
597
583
598
584
// @public
599
585
export const enum SignInMethod {
600
- // (undocumented)
586
+ // @internal (undocumented)
601
587
ANONYMOUS = " anonymous" ,
602
- // (undocumented)
603
588
EMAIL_LINK = " emailLink" ,
604
- // (undocumented)
605
589
EMAIL_PASSWORD = " password" ,
606
- // (undocumented)
607
590
FACEBOOK = " facebook.com" ,
608
- // (undocumented)
609
591
GITHUB = " github.com" ,
610
- // (undocumented)
611
592
GOOGLE = " google.com" ,
612
- // (undocumented)
613
593
PHONE = " phone" ,
614
- // (undocumented)
615
594
TWITTER = " twitter.com"
616
595
}
617
596
@@ -645,9 +624,7 @@ export class TwitterAuthProvider extends BaseOAuthProvider {
645
624
static credential(token : string , secret : string ): OAuthCredential ;
646
625
static credentialFromError(error : FirebaseError ): OAuthCredential | null ;
647
626
static credentialFromResult(userCredential : UserCredential ): OAuthCredential | null ;
648
- // (undocumented)
649
627
static readonly PROVIDER_ID = ProviderId .TWITTER ;
650
- // (undocumented)
651
628
static readonly TWITTER_SIGN_IN_METHOD = SignInMethod .TWITTER ;
652
629
}
653
630
0 commit comments