(email: string, password: string)
| 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?.()); |
nothing calls this directly
no test coverage detected