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

Method signInAnonymously

packages/firebase-auth/index.ios.ts:1008–1022  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1006 }
1007
1008 signInAnonymously(): Promise<IUserCredential> {
1009 return new Promise((resolve, reject) => {
1010 if (!this.native) {
1011 reject();
1012 } else {
1013 this.native.signInAnonymouslyWithCompletion((result, error) => {
1014 if (error) {
1015 reject(FirebaseError.fromNative(error));
1016 } else {
1017 resolve(toUserCredential(result));
1018 }
1019 });
1020 }
1021 });
1022 }
1023
1024 signInWithProvider(provider: OAuthProvider): Promise<IUserCredential> {
1025 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 2

toUserCredentialFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected