Skip to content

Instantly share code, notes, and snippets.

@drFabio
Created November 18, 2017 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drFabio/fc7b6911de8ee293596d77f5f8d27503 to your computer and use it in GitHub Desktop.
Save drFabio/fc7b6911de8ee293596d77f5f8d27503 to your computer and use it in GitHub Desktop.
var authenticated = false
var userAuthData = null
function handleAuthentication (authData) {
document.getElementById('accessContainer').style.display= 'none'
document.getElementById('questionsContainer').style.display= 'block'
authenticated = true
userAuthData = authData
document.getElementById('userName').innerHTML = authData.user.displayName
}
#questionsContainer {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment