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

Function toggle

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

Source from the content-addressed store, hash-verified

65
66// Toggle Sign in/out button
67function toggle() {
68 if (!firebase.auth().currentUser) {
69 signIn();
70 } else {
71 signOut();
72 }
73}
74
75// [START cloudrun_end_user_token]
76async function vote(team) {

Callers

nothing calls this directly

Calls 2

signInFunction · 0.85
signOutFunction · 0.85

Tested by

no test coverage detected