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

Method constructor

packages/firebase-auth/index.android.ts:963–972  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

961 _native: com.google.firebase.auth.FirebaseAuth;
962
963 constructor(app?: FirebaseApp) {
964 if (app?.native) {
965 this._native = com.google.firebase.auth.FirebaseAuth.getInstance(app.native);
966 } else {
967 if (defaultAuth) {
968 return defaultAuth;
969 }
970 defaultAuth = this;
971 }
972 }
973
974 useEmulator(host: string, port: number) {
975 this.native.useEmulator(host === 'localhost' || host === '127.0.0.1' ? '10.0.2.2' : host, port);

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected