Skip to content

Instantly share code, notes, and snippets.

@juriejan
Last active April 20, 2017 07:20
Show Gist options
  • Save juriejan/2134fc2569e56a24fc9b886f1f156198 to your computer and use it in GitHub Desktop.
Save juriejan/2134fc2569e56a24fc9b886f1f156198 to your computer and use it in GitHub Desktop.
const firebase = require('firebase')
let func = async () => {
let app = firebase.initializeApp(require('./firebase.json'))
let auth = app.auth()
await auth.signInWithEmailAndPassword(
'email@example.com', 'xxxxxxx'
)
// Do something
await auth.signOut()
await app.delete()
}
func().then(() => console.log('done'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment