xxxxxxxxxx
firebase.app()
.auth()
.currentUser
.getToken(true) // True always fetches a fresh token, recommended.
.then(function(token) {
// Send 'token' (string) to backend directly
}).catch(function(error) {
// console.log(error)
});