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

Method signInWithCustomToken

packages/firebase-auth/index.android.ts:1194–1213  ·  view source on GitHub ↗
(customToken: string)

Source from the content-addressed store, hash-verified

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) => {

Callers

nothing calls this directly

Calls 1

signInWithCustomTokenMethod · 0.65

Tested by

no test coverage detected