MCPcopy Create free account
hub / github.com/NativeScript/firebase / signInWithEmailAndPassword

Method signInWithEmailAndPassword

packages/firebase-auth/index.ios.ts:1224–1238  ·  view source on GitHub ↗
(email: string, password: string)

Source from the content-addressed store, hash-verified

1222 }
1223
1224 signInWithEmailAndPassword(email: string, password: string): Promise<IUserCredential> {
1225 return new Promise((resolve, reject) => {
1226 if (!this.native) {
1227 reject();
1228 } else {
1229 this.native.signInWithEmailPasswordCompletion(email, password, (result, error) => {
1230 if (error) {
1231 reject(FirebaseError.fromNative(error));
1232 } else {
1233 resolve(toUserCredential(result));
1234 }
1235 });
1236 }
1237 });
1238 }
1239
1240 signOut(): Promise<boolean> {
1241 return Promise.resolve(this.native?.signOut?.());

Callers

nothing calls this directly

Calls 2

toUserCredentialFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected