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