MCPcopy Create free account
hub / github.com/firebase/quickstart-js / updateSignedInUserStatusUI

Function updateSignedInUserStatusUI

auth/phone-invisible.ts:236–245  ·  view source on GitHub ↗

* Updates the Signed in user status panel.

()

Source from the content-addressed store, hash-verified

234 * Updates the Signed in user status panel.
235 */
236function updateSignedInUserStatusUI() {
237 const user = auth.currentUser;
238 if (user) {
239 signInStatus.textContent = 'Signed in';
240 accountDetails.textContent = JSON.stringify(user, null, ' ');
241 } else {
242 signInStatus.textContent = 'Signed out';
243 accountDetails.textContent = 'null';
244 }
245}
246
247// Listening for auth state changes.
248onAuthStateChanged(auth, function (user) {

Callers 1

phone-invisible.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected