Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FIXME: set credentials
- const username = ''
- const password = ''
- //FIXME: set to firebase config JSON
- const firebaseConfig = {}
- const firebase = require('firebase')
- firebase.initializeApp()
- ;(async () => {
- await firebase.auth().signInWithEmailAndPassword(username, password)
- let token = await firebase.auth().currentUser.refreshToken
- console.log(token)
- })()
Add Comment
Please, Sign In to add comment