(customToken: string)
| 1192 | } |
| 1193 | |
| 1194 | signInWithCustomToken(customToken: string): Promise<IUserCredential> { |
| 1195 | return new Promise((resolve, reject) => { |
| 1196 | if (!this.native) { |
| 1197 | reject(); |
| 1198 | } else { |
| 1199 | NSFirebaseAuth().signInWithCustomToken( |
| 1200 | this.native, |
| 1201 | customToken, |
| 1202 | new org.nativescript.firebase.auth.FirebaseAuth.Callback({ |
| 1203 | onSuccess(success) { |
| 1204 | resolve(toUserCredential(success)); |
| 1205 | }, |
| 1206 | onError(error) { |
| 1207 | reject(FirebaseError.fromNative(error)); |
| 1208 | }, |
| 1209 | }) |
| 1210 | ); |
| 1211 | } |
| 1212 | }); |
| 1213 | } |
| 1214 | |
| 1215 | signInWithEmailLink(email: string, emailLink: string): Promise<IUserCredential> { |
| 1216 | return new Promise((resolve, reject) => { |
nothing calls this directly
no test coverage detected