MCPcopy Index your code
hub / github.com/NativeScript/firebase / fetchSignInMethodsForEmail

Method fetchSignInMethodsForEmail

packages/firebase-auth/index.ios.ts:900–920  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

898 }
899
900 fetchSignInMethodsForEmail(email: string): Promise<string[]> {
901 return new Promise((resolve, reject) => {
902 if (!this.native) {
903 reject();
904 }
905 this.native.fetchSignInMethodsForEmailCompletion(email, (emails, error) => {
906 if (error) {
907 reject(FirebaseError.fromNative(error));
908 } else {
909 const arr = [];
910 if (emails) {
911 const size = emails.count;
912 for (let i = 0; i < size; i++) {
913 arr.push(emails.objectAtIndex(i));
914 }
915 }
916 resolve(arr);
917 }
918 });
919 });
920 }
921
922 isSignInWithEmailLink(emailLink: string): boolean {
923 return this.native.isSignInWithEmailLink(emailLink);

Callers

nothing calls this directly

Calls 2

pushMethod · 0.65
fromNativeMethod · 0.45

Tested by

no test coverage detected