Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
67
function
toggle() {
68
if
(!firebase.auth().currentUser) {
69
signIn();
70
}
else
{
71
signOut();
72
}
73
}
74
75
// [START cloudrun_end_user_token]
76
async
function
vote(team) {
Callers
nothing calls this directly
Calls
2
signIn
Function · 0.85
signOut
Function · 0.85
Tested by
no test coverage detected