MCPcopy Index your code
hub / github.com/NativeScript/firebase / loginUser

Method loginUser

apps/demo/src/plugin-demos/firebase-auth.ts:139–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 loginUser() {
140 firebase()
141 .auth()
142 .signInWithEmailAndPassword(this.email, this.password)
143 .then((value) => {
144 console.log('loginUser', value);
145 this._setCurrentUser(value.user);
146 })
147 .catch((e) => {
148 console.error('loginUser', e);
149 });
150 }
151
152 _setCurrentUser(user: User) {
153 this.set('user', user);

Callers

nothing calls this directly

Calls 7

_setCurrentUserMethod · 0.95
firebaseFunction · 0.90
authMethod · 0.80
logMethod · 0.65
thenMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected