* Function called when clicking the Login/Logout button.
()
| 38 | * Function called when clicking the Login/Logout button. |
| 39 | */ |
| 40 | function toggleSignIn() { |
| 41 | if (!auth.currentUser) { |
| 42 | const provider = new TwitterAuthProvider(); |
| 43 | signInWithRedirect(auth, provider); |
| 44 | } else { |
| 45 | signOut(auth); |
| 46 | } |
| 47 | signInButton.disabled = true; |
| 48 | } |
| 49 | |
| 50 | // Result from Redirect auth flow. |
| 51 | getRedirectResult(auth) |
nothing calls this directly
no outgoing calls
no test coverage detected