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

Method signInWithCustomToken

packages/firebase-auth/index.ios.ts:1078–1092  ·  view source on GitHub ↗
(customToken: string)

Source from the content-addressed store, hash-verified

1076 }
1077
1078 signInWithCustomToken(customToken: string): Promise<IUserCredential> {
1079 return new Promise((resolve, reject) => {
1080 if (!this.native) {
1081 reject();
1082 } else {
1083 this.native.signInWithCustomTokenCompletion(customToken, (result, error) => {
1084 if (error) {
1085 reject(FirebaseError.fromNative(error));
1086 } else {
1087 resolve(toUserCredential(result));
1088 }
1089 });
1090 }
1091 });
1092 }
1093
1094 signInWithEmailLink(email: string, emailLink: string): Promise<IUserCredential> {
1095 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 2

toUserCredentialFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected