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

Function updateSignedInUserStatusUI

auth/phone-simple.ts:65–74  ·  view source on GitHub ↗

* Updates the Signed in user status panel.

()

Source from the content-addressed store, hash-verified

63 * Updates the Signed in user status panel.
64 */
65function updateSignedInUserStatusUI() {
66 const user = auth.currentUser;
67 if (user) {
68 signInStatus.textContent = 'Signed in';
69 accountDetails.textContent = JSON.stringify(user, null, ' ');
70 } else {
71 signInStatus.textContent = 'Signed out';
72 accountDetails.textContent = 'null';
73 }
74}
75
76// Listening for auth state changes.
77onAuthStateChanged(auth, function (user) {

Callers 1

phone-simple.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected