MCPcopy Index your code
hub / github.com/firebase/quickstart-js / updateSignedInUserStatusUI

Function updateSignedInUserStatusUI

auth/phone-visible.ts:252–261  ·  view source on GitHub ↗

* Updates the Signed in user status panel.

()

Source from the content-addressed store, hash-verified

250 * Updates the Signed in user status panel.
251 */
252function updateSignedInUserStatusUI() {
253 const user = auth.currentUser;
254 if (user) {
255 signInStatus.textContent = 'Signed in';
256 accountDetails.textContent = JSON.stringify(user, null, ' ');
257 } else {
258 signInStatus.textContent = 'Signed out';
259 accountDetails.textContent = 'null';
260 }
261}
262
263// Listening for auth state changes.
264onAuthStateChanged(auth, function (user) {

Callers 1

phone-visible.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected