MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / signOut

Function signOut

run/idp-sql/static/firebase.js:55–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53// [END cloudrun_end_user_firebase_sign_in]
54
55function signOut() {
56 firebase
57 .auth()
58 .signOut()
59 .then(result => {})
60 .catch(err => {
61 console.log(`Error during sign out: ${err.message}`);
62 window.alert('Sign out failed. Retry or check your browser logs.');
63 });
64}
65
66// Toggle Sign in/out button
67function toggle() {

Callers 1

toggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected