Last active
April 20, 2017 07:20
-
-
Save juriejan/2134fc2569e56a24fc9b886f1f156198 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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