@@ -156,6 +156,17 @@ const confirmPasswordReset = async () => {
156
156
});
157
157
};
158
158
159
+ const deleteUser = async () => {
160
+ await FirebaseAuthentication .deleteUser ();
161
+ };
162
+
163
+ const fetchSignInMethodsForEmail = async () => {
164
+ const result = await FirebaseAuthentication .fetchSignInMethodsForEmail ({
165
+
166
+ });
167
+ return result .signInMethods ;
168
+ };
169
+
159
170
const getCurrentUser = async () => {
160
171
const result = await FirebaseAuthentication .getCurrentUser ();
161
172
return result .user ;
@@ -377,129 +388,65 @@ const useEmulator = async () => {
377
388
378
389
<docgen-index >
379
390
380
- - [ @capacitor-firebase/authentication ] ( #capacitor-firebaseauthentication )
381
- - [ Installation] ( #installation )
382
- - [ Configuration] ( #configuration )
383
- - [ Examples] ( #examples )
384
- - [ FAQ] ( #faq )
385
- - [ Firebase JavaScript SDK] ( #firebase-javascript-sdk )
386
- - [ Demo] ( #demo )
387
- - [ Starter Templates] ( #starter-templates )
388
- - [ Usage] ( #usage )
389
- - [ API] ( #api )
390
- - [ applyActionCode(...)] ( #applyactioncode )
391
- - [ confirmPasswordReset(...)] ( #confirmpasswordreset )
392
- - [ confirmVerificationCode(...)] ( #confirmverificationcode )
393
- - [ createUserWithEmailAndPassword(...)] ( #createuserwithemailandpassword )
394
- - [ deleteUser()] ( #deleteuser )
395
- - [ getCurrentUser()] ( #getcurrentuser )
396
- - [ getIdToken(...)] ( #getidtoken )
397
- - [ getRedirectResult()] ( #getredirectresult )
398
- - [ getTenantId()] ( #gettenantid )
399
- - [ isSignInWithEmailLink(...)] ( #issigninwithemaillink )
400
- - [ linkWithApple(...)] ( #linkwithapple )
401
- - [ linkWithEmailAndPassword(...)] ( #linkwithemailandpassword )
402
- - [ linkWithEmailLink(...)] ( #linkwithemaillink )
403
- - [ linkWithFacebook(...)] ( #linkwithfacebook )
404
- - [ linkWithGameCenter(...)] ( #linkwithgamecenter )
405
- - [ linkWithGithub(...)] ( #linkwithgithub )
406
- - [ linkWithGoogle(...)] ( #linkwithgoogle )
407
- - [ linkWithMicrosoft(...)] ( #linkwithmicrosoft )
408
- - [ linkWithPhoneNumber(...)] ( #linkwithphonenumber )
409
- - [ linkWithPlayGames(...)] ( #linkwithplaygames )
410
- - [ linkWithTwitter(...)] ( #linkwithtwitter )
411
- - [ linkWithYahoo(...)] ( #linkwithyahoo )
412
- - [ reload()] ( #reload )
413
- - [ sendEmailVerification()] ( #sendemailverification )
414
- - [ sendPasswordResetEmail(...)] ( #sendpasswordresetemail )
415
- - [ sendSignInLinkToEmail(...)] ( #sendsigninlinktoemail )
416
- - [ setLanguageCode(...)] ( #setlanguagecode )
417
- - [ setPersistence(...)] ( #setpersistence )
418
- - [ setTenantId(...)] ( #settenantid )
419
- - [ signInAnonymously()] ( #signinanonymously )
420
- - [ signInWithApple(...)] ( #signinwithapple )
421
- - [ signInWithCustomToken(...)] ( #signinwithcustomtoken )
422
- - [ signInWithEmailAndPassword(...)] ( #signinwithemailandpassword )
423
- - [ signInWithEmailLink(...)] ( #signinwithemaillink )
424
- - [ signInWithFacebook(...)] ( #signinwithfacebook )
425
- - [ signInWithGameCenter(...)] ( #signinwithgamecenter )
426
- - [ signInWithGithub(...)] ( #signinwithgithub )
427
- - [ signInWithGoogle(...)] ( #signinwithgoogle )
428
- - [ signInWithMicrosoft(...)] ( #signinwithmicrosoft )
429
- - [ signInWithPhoneNumber(...)] ( #signinwithphonenumber )
430
- - [ signInWithPlayGames(...)] ( #signinwithplaygames )
431
- - [ signInWithTwitter(...)] ( #signinwithtwitter )
432
- - [ signInWithYahoo(...)] ( #signinwithyahoo )
433
- - [ signOut()] ( #signout )
434
- - [ unlink(...)] ( #unlink )
435
- - [ updateEmail(...)] ( #updateemail )
436
- - [ updatePassword(...)] ( #updatepassword )
437
- - [ updateProfile(...)] ( #updateprofile )
438
- - [ useAppLanguage()] ( #useapplanguage )
439
- - [ useEmulator(...)] ( #useemulator )
440
- - [ addListener('authStateChange', ...)] ( #addlistenerauthstatechange- )
441
- - [ addListener('phoneVerificationCompleted', ...)] ( #addlistenerphoneverificationcompleted- )
442
- - [ addListener('phoneVerificationFailed', ...)] ( #addlistenerphoneverificationfailed- )
443
- - [ addListener('phoneCodeSent', ...)] ( #addlistenerphonecodesent- )
444
- - [ removeAllListeners()] ( #removealllisteners )
445
- - [ Interfaces] ( #interfaces )
446
- - [ ApplyActionCodeOptions] ( #applyactioncodeoptions )
447
- - [ ConfirmPasswordResetOptions] ( #confirmpasswordresetoptions )
448
- - [ SignInResult] ( #signinresult )
449
- - [ User] ( #user )
450
- - [ UserMetadata] ( #usermetadata )
451
- - [ UserInfo] ( #userinfo )
452
- - [ AuthCredential] ( #authcredential )
453
- - [ AdditionalUserInfo] ( #additionaluserinfo )
454
- - [ ConfirmVerificationCodeOptions] ( #confirmverificationcodeoptions )
455
- - [ CreateUserWithEmailAndPasswordOptions] ( #createuserwithemailandpasswordoptions )
456
- - [ GetCurrentUserResult] ( #getcurrentuserresult )
457
- - [ GetIdTokenResult] ( #getidtokenresult )
458
- - [ GetIdTokenOptions] ( #getidtokenoptions )
459
- - [ GetTenantIdResult] ( #gettenantidresult )
460
- - [ IsSignInWithEmailLinkResult] ( #issigninwithemaillinkresult )
461
- - [ IsSignInWithEmailLinkOptions] ( #issigninwithemaillinkoptions )
462
- - [ SignInWithOAuthOptions] ( #signinwithoauthoptions )
463
- - [ SignInCustomParameter] ( #signincustomparameter )
464
- - [ LinkWithEmailAndPasswordOptions] ( #linkwithemailandpasswordoptions )
465
- - [ LinkWithEmailLinkOptions] ( #linkwithemaillinkoptions )
466
- - [ SignInWithPhoneNumberOptions] ( #signinwithphonenumberoptions )
467
- - [ SendPasswordResetEmailOptions] ( #sendpasswordresetemailoptions )
468
- - [ SendSignInLinkToEmailOptions] ( #sendsigninlinktoemailoptions )
469
- - [ ActionCodeSettings] ( #actioncodesettings )
470
- - [ SetLanguageCodeOptions] ( #setlanguagecodeoptions )
471
- - [ SetPersistenceOptions] ( #setpersistenceoptions )
472
- - [ Persistence] ( #persistence )
473
- - [ SetTenantIdOptions] ( #settenantidoptions )
474
- - [ SignInWithCustomTokenOptions] ( #signinwithcustomtokenoptions )
475
- - [ SignInWithEmailAndPasswordOptions] ( #signinwithemailandpasswordoptions )
476
- - [ SignInWithEmailLinkOptions] ( #signinwithemaillinkoptions )
477
- - [ SignInOptions] ( #signinoptions )
478
- - [ UnlinkResult] ( #unlinkresult )
479
- - [ UnlinkOptions] ( #unlinkoptions )
480
- - [ UpdateEmailOptions] ( #updateemailoptions )
481
- - [ UpdatePasswordOptions] ( #updatepasswordoptions )
482
- - [ UpdateProfileOptions] ( #updateprofileoptions )
483
- - [ UseEmulatorOptions] ( #useemulatoroptions )
484
- - [ PluginListenerHandle] ( #pluginlistenerhandle )
485
- - [ AuthStateChange] ( #authstatechange )
486
- - [ PhoneVerificationCompletedEvent] ( #phoneverificationcompletedevent )
487
- - [ PhoneVerificationFailedEvent] ( #phoneverificationfailedevent )
488
- - [ PhoneCodeSentEvent] ( #phonecodesentevent )
489
- - [ Type Aliases] ( #type-aliases )
490
- - [ LinkWithOAuthOptions] ( #linkwithoauthoptions )
491
- - [ LinkResult] ( #linkresult )
492
- - [ LinkWithPhoneNumberOptions] ( #linkwithphonenumberoptions )
493
- - [ AuthStateChangeListener] ( #authstatechangelistener )
494
- - [ PhoneVerificationCompletedListener] ( #phoneverificationcompletedlistener )
495
- - [ PhoneVerificationFailedListener] ( #phoneverificationfailedlistener )
496
- - [ PhoneCodeSentListener] ( #phonecodesentlistener )
497
- - [ Enums] ( #enums )
498
- - [ Persistence] ( #persistence-1 )
499
- - [ ProviderId] ( #providerid )
500
- - [ Changelog] ( #changelog )
501
- - [ License] ( #license )
502
- - [ Credits] ( #credits )
391
+ * [ ` applyActionCode(...) ` ] ( #applyactioncode )
392
+ * [ ` confirmPasswordReset(...) ` ] ( #confirmpasswordreset )
393
+ * [ ` confirmVerificationCode(...) ` ] ( #confirmverificationcode )
394
+ * [ ` createUserWithEmailAndPassword(...) ` ] ( #createuserwithemailandpassword )
395
+ * [ ` deleteUser() ` ] ( #deleteuser )
396
+ * [ ` fetchSignInMethodsForEmail(...) ` ] ( #fetchsigninmethodsforemail )
397
+ * [ ` getCurrentUser() ` ] ( #getcurrentuser )
398
+ * [ ` getIdToken(...) ` ] ( #getidtoken )
399
+ * [ ` getRedirectResult() ` ] ( #getredirectresult )
400
+ * [ ` getTenantId() ` ] ( #gettenantid )
401
+ * [ ` isSignInWithEmailLink(...) ` ] ( #issigninwithemaillink )
402
+ * [ ` linkWithApple(...) ` ] ( #linkwithapple )
403
+ * [ ` linkWithEmailAndPassword(...) ` ] ( #linkwithemailandpassword )
404
+ * [ ` linkWithEmailLink(...) ` ] ( #linkwithemaillink )
405
+ * [ ` linkWithFacebook(...) ` ] ( #linkwithfacebook )
406
+ * [ ` linkWithGameCenter(...) ` ] ( #linkwithgamecenter )
407
+ * [ ` linkWithGithub(...) ` ] ( #linkwithgithub )
408
+ * [ ` linkWithGoogle(...) ` ] ( #linkwithgoogle )
409
+ * [ ` linkWithMicrosoft(...) ` ] ( #linkwithmicrosoft )
410
+ * [ ` linkWithPhoneNumber(...) ` ] ( #linkwithphonenumber )
411
+ * [ ` linkWithPlayGames(...) ` ] ( #linkwithplaygames )
412
+ * [ ` linkWithTwitter(...) ` ] ( #linkwithtwitter )
413
+ * [ ` linkWithYahoo(...) ` ] ( #linkwithyahoo )
414
+ * [ ` reload() ` ] ( #reload )
415
+ * [ ` sendEmailVerification() ` ] ( #sendemailverification )
416
+ * [ ` sendPasswordResetEmail(...) ` ] ( #sendpasswordresetemail )
417
+ * [ ` sendSignInLinkToEmail(...) ` ] ( #sendsigninlinktoemail )
418
+ * [ ` setLanguageCode(...) ` ] ( #setlanguagecode )
419
+ * [ ` setPersistence(...) ` ] ( #setpersistence )
420
+ * [ ` setTenantId(...) ` ] ( #settenantid )
421
+ * [ ` signInAnonymously() ` ] ( #signinanonymously )
422
+ * [ ` signInWithApple(...) ` ] ( #signinwithapple )
423
+ * [ ` signInWithCustomToken(...) ` ] ( #signinwithcustomtoken )
424
+ * [ ` signInWithEmailAndPassword(...) ` ] ( #signinwithemailandpassword )
425
+ * [ ` signInWithEmailLink(...) ` ] ( #signinwithemaillink )
426
+ * [ ` signInWithFacebook(...) ` ] ( #signinwithfacebook )
427
+ * [ ` signInWithGameCenter(...) ` ] ( #signinwithgamecenter )
428
+ * [ ` signInWithGithub(...) ` ] ( #signinwithgithub )
429
+ * [ ` signInWithGoogle(...) ` ] ( #signinwithgoogle )
430
+ * [ ` signInWithMicrosoft(...) ` ] ( #signinwithmicrosoft )
431
+ * [ ` signInWithPhoneNumber(...) ` ] ( #signinwithphonenumber )
432
+ * [ ` signInWithPlayGames(...) ` ] ( #signinwithplaygames )
433
+ * [ ` signInWithTwitter(...) ` ] ( #signinwithtwitter )
434
+ * [ ` signInWithYahoo(...) ` ] ( #signinwithyahoo )
435
+ * [ ` signOut() ` ] ( #signout )
436
+ * [ ` unlink(...) ` ] ( #unlink )
437
+ * [ ` updateEmail(...) ` ] ( #updateemail )
438
+ * [ ` updatePassword(...) ` ] ( #updatepassword )
439
+ * [ ` updateProfile(...) ` ] ( #updateprofile )
440
+ * [ ` useAppLanguage() ` ] ( #useapplanguage )
441
+ * [ ` useEmulator(...) ` ] ( #useemulator )
442
+ * [ ` addListener('authStateChange', ...) ` ] ( #addlistenerauthstatechange )
443
+ * [ ` addListener('phoneVerificationCompleted', ...) ` ] ( #addlistenerphoneverificationcompleted )
444
+ * [ ` addListener('phoneVerificationFailed', ...) ` ] ( #addlistenerphoneverificationfailed )
445
+ * [ ` addListener('phoneCodeSent', ...) ` ] ( #addlistenerphonecodesent )
446
+ * [ ` removeAllListeners() ` ] ( #removealllisteners )
447
+ * [ Interfaces] ( #interfaces )
448
+ * [ Type Aliases] ( #type-aliases )
449
+ * [ Enums] ( #enums )
503
450
504
451
</docgen-index >
505
452
@@ -592,6 +539,25 @@ Deletes and signs out the user.
592
539
--------------------
593
540
594
541
542
+ ### fetchSignInMethodsForEmail(...)
543
+
544
+ ``` typescript
545
+ fetchSignInMethodsForEmail (options : FetchSignInMethodsForEmailOptions ) => Promise < FetchSignInMethodsForEmailResult >
546
+ ```
547
+
548
+ Fetches the sign-in methods for an email address.
549
+
550
+ | Param | Type |
551
+ | ------------- | ----------------------------------------------------------------------------------------------- |
552
+ | ** ` options ` ** | <code ><a href =" #fetchsigninmethodsforemailoptions " >FetchSignInMethodsForEmailOptions</a ></code > |
553
+
554
+ ** Returns:** <code >Promise< ; <a href =" #fetchsigninmethodsforemailresult " >FetchSignInMethodsForEmailResult</a >> ; </code >
555
+
556
+ ** Since:** 6.0.0
557
+
558
+ --------------------
559
+
560
+
595
561
### getCurrentUser()
596
562
597
563
``` typescript
@@ -1658,6 +1624,20 @@ Remove all listeners for this plugin.
1658
1624
| ** ` password ` ** | <code >string</code > | 0.2.2 |
1659
1625
1660
1626
1627
+ #### FetchSignInMethodsForEmailResult
1628
+
1629
+ | Prop | Type | Description | Since |
1630
+ | ------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
1631
+ | ** ` signInMethods ` ** | <code >string[ ] </code > | The sign-in methods for the specified email address. This list is empty when [ Email Enumeration Protection] ( https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection ) is enabled, irrespective of the number of authentication methods available for the given email. | 6.0.0 |
1632
+
1633
+
1634
+ #### FetchSignInMethodsForEmailOptions
1635
+
1636
+ | Prop | Type | Description | Since |
1637
+ | ----------- | ------------------- | ------------------------- | ----- |
1638
+ | ** ` email ` ** | <code >string</code > | The user's email address. | 6.0.0 |
1639
+
1640
+
1661
1641
#### GetCurrentUserResult
1662
1642
1663
1643
| Prop | Type | Description | Since |
0 commit comments